Testing x509 certs for luacrypto # Make the CA cert openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 365 -key ca.key -out ca.crt # Make server cert and signing request openssl genrsa -des3 -out server.key 4096 openssl req -new -key server.key -out server.csr # Sign the server csr and generate a crt openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt # Output unencrypted server key openssl rsa -in server.key -out server.key.insecure