/etc/ssl/
/etc/letsencrypt/archive/доменное имя
/etc/letsencrypt/live/доменное имя
openssl req -new -x509 -days 1461 -nodes -out /etc/ssl/public.pem -keyout /etc/ssl/private.key -subj "/C=RU/ST=SPb/L=SPb/O=Global Security/OU=IT Department/CN=Ваше доменное имя"
certbot certonly --webroot --agree-tos --email service@fellk.ru --webroot-path /var/www/html/ -d fellk.ru -d www.fellk.ru
certbot certonly --manual --agree-tos --email service@fellk.ru --preferred-challenges=dns -d fellk.ru -d www.fellk.ruНа запрос отвечаем Y и получаем подобное сообщение
VHFPbXt82j2oUjhxVgS7Bphpkf3Cv1Bq9KSA2dd
Once this is deployed,
Теперь идем к хостеру и создаем там TXT-запись _acme-challenge.fellk.ru с содержимым VHFPbXt82j2oUjhxVgS7Bphpkf3Cv1Bq9KSA2dd
certbot certonly --manual --agree-tos --email service@fellk.ru --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges=dns -d fellk.ru -d *.fellk.ruКак и в предыдущем случае система попросит создать TXT запись.
openssl genpkey -algorithm RSA -out rootCA.key -aes-128-cbc
openssl req -x509 -new -key rootCA.key -sha256 -days 3650 -out rootCA.crt
nano rootCA.srl
nano test.cnf
[ req ] default_bits = 2048 distinguished_name = req_distinguished_name req_extensions = req_ext [ req_distinguished_name ] countryName = Country Name (2 letter code) countryName_default = RU stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = Spb localityName = Locality Name (eg, city) localityName_default = Spb organizationName = Organization Name (eg, company) organizationName_default = Test commonName = Common Name (eg, YOUR name or FQDN) commonName_max = 64 commonName_default = test.test.ru [ req_ext ] basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment subjectAltName = DNS:test.test.ru
openssl genpkey -algorithm RSA -out test.key
openssl req -new -key test.key -config test.cnf -reqexts req_ext -out test.csr
openssl x509 -req -days 730 -CA rootCA.crt -CAkey rootCA.key -extfile test.cnf -extensions req_ext -in test.csr -out test.crt