To obtain a self-signed certificate, open a command prompt and execute the following command:
c:\key>c:\openssl\bin\openssl x509 -req -sha256 -days 10000 -in server.csr -signkey server.key -out server.crt
Note: This command uses SHA-256 as a hash
algorithm. MD5 or SHA-1 is not recommended for a hash algorithm due to its low
security level.
This command creates a server.crt file in the c:\key folder, which is valid for 10,000 days. This is the signed private key, which is also referred to as a self-signed certificate.