Author: Paul Schell

  • Generate selfsigned certificate and keystore JKS

    Generate SSL keys Execute each command individually: openssl genrsa -out key.pem openssl req -new -key key.pem -out csr.pem IMPORTANT: To use that in localhost development you have to set Common Name to localhost: CN=localhost openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem rm csr.pem Generate keystore from SSL keys Execute each command…

  • shell/bash

    Read a template file and replace placeholder script-template.txt #!/bin/bash echo “–TIMESTAMP–” gen-script.sh #!/bin/bash # Get variables timestamp=`date` # Replace placeholder content=`cat ./script-template.txt` content=`echo “${content/–TIMESTAMP–/$timestamp}”` # Generate a script echo “$content” > startup.sh chmod +x startup.sh