Creating an SSL certificate

Create a new directory inside the educa project directory and name it ssl. Then generate an SSL certificate from the command line with the following command:

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl/educa.key -out ssl/educa.crt

We are generating a private key and a 2048-bit SSL certificate valid for one year. You will be asked to enter data as follows:

Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []: educaproject.com
Email Address []: [email protected]

You can fill in the requested data with your own information. The most important field is the Common Name. You have to specify the domain name for the certificate. We use educaproject.com.

This will generate, inside the ssl/ directory, an educa.key private key file and an educa.crt file, which is the actual certificate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.79.121