Генерация CSR-файла и private key

Файл запроса и приватный ключ генерируется очень быстро с помощью команды openssl:

# openssl req -new -nodes -keyout ssl.example.com.key -out ssl.example.com.csr -newkey rsa:2048

Generating a 2048 bit RSA private key
writing new private key to ‘ssl.example.com.key’
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]:US
State or Province Name (full name) []:Uta
Locality Name (eg, city) [Default City]:Moscow
Organization Name (eg, company) [Default Company Ltd]:Example Ltd
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server’s hostname) []:ssl.example.com
Email Address []:info@ssl.example.com

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
# ls -al ./ssl.example.com.*
-rw-rw-r— 1 root root 1058 Май 21 13:00 ./ssl.example.com.csr
-rw-rw-r— 1 root root 1704 Май 21 13:00 ./ssl.example.com.key

Вы можете оставить комментарий, или ссылку на Ваш сайт.

Оставить комментарий