In many environments you can use ssl encryption, and you may skip the encryption because generating a cert or getting a lets encrypt cert would add more time to the thing your are working on. To overcome this security issue I wrote a small script to create a crt and key file.


# fast ssl cert without ca


openssl genrsa -out $ENDPOINT.key 2048
openssl req -new -x509 -key $ENDPOINT.key -out $ENDPOINT.crt -days 3650 -subj /CN=$ENDPOINT


 ./ domain.tld
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x010001)

This created 2 files domain.tld.key and domain.tld.crt

- Stein van Broekhoven


comments powered by Disqus