Paso 1: Creación del par de claves
Escriba el siguiente comando en el terminal para una clave no cifrada.
openssl genrsa -out www.sudominio.com.key 2048
# openssl genrsa -out www.sudominio.com.key 2048
Generating RSA private key, 2048 bit long modulus
..+++
...............................................+++
e is 65537 (0x10001)
Paso 2: Generar el CSR
openssl req -out www.sudominio.com.csr -key www.sudominio.com.key -new -sha256
# openssl req -out www.sudominio.com.csr -key www.sudominio.com.key -new -sha256
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:PE
State or Province Name (full name) []:LIMA
Locality Name (eg, city) [Default City]:LIMA
Organization Name (eg, company) [Default Company Ltd]:SU EMPRESA SAC
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server's hostname) []:www.sudominio.com
Email Address []:ssl@hostinglabs.net
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:clave123
An optional company name []: ninguno
Se deben ingresar algunos datos:
Consulte la siguiente guía para la emisión del Certificado SSL desde nuestra área de clientes:
https://clientes.hostinglabs.net/knowledgebase/52/Emitir-certificado-desde-Area-de-clientes-Hostinglabs.html