To create a self-signed certificate, you need the openssl library to:
Debian: apt-get install openssl
Centos / RedHat: yum install openssl
Then follow these steps:
Create a private key:
openssl genrsa -out server.pem 1024
Generate CSR: (In the "Common Name" specify the domain of your service provider)
openssl req -new -key server.pem -out server.csr
Create a self-signed certificate
openssl x509 -req -days 365 -in server.csr -signkey server.pem -out server.crt
At the end of the process, you will receive server.csr (certificate signing request), server.pem (private key) and server.crt (self signed cert)
In windows you can use makecert.exe
source
share