| 9 | To create the self-signed certificate, run the following command |
| 10 | {{{ |
| 11 | openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt |
| 12 | }}} |
| 13 | The above command will prompt you to enter the passphrase. Once you enter the correct passphrase, your certificate will be created and it will be stored in the server.crt file |
| 14 | ===Installing the Certificate === |
| 15 | |
| 16 | You can install the key file server.key and certificate file server.crt, or the certificate file issued by your CA, by running following commands |
| 17 | |
| 18 | {{{ |
| 19 | sudo cp server.crt /etc/ssl/certs |
| 20 | sudo cp server.key /etc/ssl/private |
| 21 | }}} |