Description | This article describes how to generate private keys and CSR for SSL certificate signing requests using OpenSSL tool. |
Scope | FortiWeb.
|
Solution |
FortiWeb supports generating CSR for SSL certificate signing requests, but the private key will be stored within FortiWeb and does not support exporting the unencrypted private key out from FortiWeb.
It is not an issue if the private key and signed SSL certificate are only required to be installed in the FortiWeb. However, it will be problematic if the private key and signed SSL certificate are required to be installed on other devices/endpoints.
In this article, we will use the “openssl” tool in a Linux Subsystem to generate the private key and CSR.
openssl req -newkey rsa:4096 -nodes -keyout <New-PKeyName>.key -out <New-CSRName>.csr
openssl ecparam -out <New-PKeyName>.key -name prime256v1 -genkey openssl req -new -key <New-PKeyName>.key -out <New-CSRName>.csr
Upon executing the OpenSSL commands, it is then required to enter a series of information that will be incorporated into the certificate request:
The CSR file will be generated after completing the process. Open the CSR with a text editor and copy the CSR contents to submit to the SSL certificate Authority provider.
Example of a CSR file contents:
Related document: |