guidesStorage/SSL/create_selfsigned_cert.md

9 lines
833 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Создание самоподписанного сертификата
Создание с помощью openssl.
```
openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out myserv.crt -keyout myserv.key
```
Эта команда создаст сертификат и ключ к сертификату, действует 365 дней с длинной ключа 4096 бит. openssl вас попросит заполнить некоторые поля, можете как угодно, кроме поля Common Name (e.g. server FQDN or YOUR name), его нужно заполнить доменом на котором вы собираетесь разместить сертификат.
Warning: Эта информация не точная и не учитывает многих нюансов.