A collection of openssl commands arround certificates.
verify single certificate
openssl verify server.crt
const {STATUS_CODES} = require('http') | |
/** | |
* HTTP Error | |
* @param {Number} status - http status code | |
* @param {String|Error} msg - message or error | |
* @param {String} [code] - optional code | |
* @return {Error} error | |
*/ | |
const httpError = (status = 500, msg, code) => { |
/** | |
* convert models-yaml/*.yaml file to models/*.json | |
*/ | |
/* eslint no-console: off */ | |
const yaml = require('js-yaml') | |
const {resolve, basename} = require('path') | |
const fs = require('fs') |
#!/bin/bash | |
while read -r f | |
do | |
path=${f%/*} | |
file=${f##*/} | |
base=${file%%.*} # note needs $file | |
ext=${file#*.} # note needs $file | |
echo "$f ; $path ; $file ; $base ; $ext" |