venerdì 5 luglio 2019

SSL certificate request

For everyone that has frequently need to create a certificate this is the list of command to put in a batch file to create the request:

set /p fileName=Enter filename and path to generate the certificate
bin\openssl genrsa -des3 -out %fileName%.key 2048
bin\openssl rsa -in %fileName%.key -out %fileName%.key
bin\openssl req -config C:\OpenSSL\bin\openssl.cfg -new -key %fileName%.key -out %fileName%.csr


Then follow the onscreen instruction.