{"id":337096,"date":"2022-08-16T09:00:20","date_gmt":"2022-08-16T09:00:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=337096"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=337096","title":{"rendered":"<span>showcert: \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b (\u0431\u0435\u0437 \u0431\u043e\u043b\u0438)<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"https:\/\/github.com\/yaroslaff\/showcert\/\" rel=\"noopener noreferrer nofollow\">showcert<\/a> &#8212; \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f CLI \u0443\u0442\u0438\u043b\u0438\u0442\u043a\u0430, \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 openssl \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432. \u041e\u043d\u0430 \u0443\u043c\u0435\u0435\u0442 1% \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 openssl, \u043d\u043e \u0437\u0430\u0442\u043e \u0443\u043c\u0435\u0435\u0442 [\u043f\u043e\u0447\u0442\u0438] \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u043e\u0439 \u0436\u0438\u0437\u043d\u0438 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c openssl. \u0418 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412\u0437\u044f\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 (\u0438\u043b\u0438 \u0446\u0435\u043f\u043e\u0447\u043a\u0443) \u0438\u0437 stdin, \u0444\u0430\u0439\u043b\u0430(\u0444\u0430\u0439\u043b\u043e\u0432) \u0438\u043b\u0438 \u0438\u0437 TLS \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (HTTPS, POP3S, IMAPS), \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0447\u0435\u0440\u0435\u0437 STARTTLS (\u0434\u043b\u044f SMTP, POP3, IMAP)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c &#171;\u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c&#187; \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0438 \u0435\u0441\u043b\u0438 \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u0441\u0442\u0435\u043a\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 N \u0434\u043d\u0435\u0439 &#8212; \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 (\u0446\u0435\u043f\u043e\u0447\u043a\u0443) \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435), \u043f\u043e\u043b\u043d\u043e\u0439, \u0432 PEM \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432 cert.pem \u0438\u043b\u0438 fullchain.pem).<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0445\u043e\u0447\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u0430\u0442\u0443 \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u044f\u043d\u0434\u0435\u043a\u0441\u0430, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0433\u0443\u0433\u043b\u044e, \u043f\u043e\u0442\u043e\u043c \u0441\u043d\u043e\u0440\u043e\u0432\u0438\u0441\u0442\u043e \u043f\u0438\u0448\u0443 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<p><code>$ echo | openssl s_client  -connect mx.yandex.ru:25 -starttls smtp 2>&amp;1 | openssl x509 -noout -dates<\/code><\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0447\u0430\u0442\u0430\u044e \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443, \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u043d\u0435\u043c\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e\u043a\u043e\u0440\u0435\u043d\u043d\u044b\u0445 \u0441\u043b\u043e\u0432 \u0438\u0437 \u0444\u043b\u043e\u0442\u0441\u043a\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u044b, \u0430 \u0432\u0435\u0434\u044c \u044f \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u043b\u0443\u0436\u0438\u043b&#8230; \u0410 \u0442\u0435\u043f\u0435\u0440\u044c, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0434\u0430\u0442\u0443, \u0430 \u0435\u0449\u0435 \u0438 \u043a\u0430\u043a-\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0434\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044c\u0448\u0435 20 \u0434\u043d\u0435\u0439&#8230; \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430? \u041c\u043d\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 openssl \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0435\u043b\u043b \u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/p>\n<h3>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 showcert<\/h3>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c (\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438: <code>pip3 install showcert<\/code>) \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0441:<\/p>\n<p><code>$ showcert mx.yandex.ru:25<br \/> Names: mx.yandex.ru mx.yandex.net<br \/> notBefore: 2022-07-25 11:16:45 (15 days old)<br \/> notAfter: 2023-01-22 20:59:59 (165 days left)<br \/> Issuer: C=BE O=GlobalSign nv-sa CN=GlobalSign RSA OV SSL CA 2018<br \/><\/code><br \/>\u041d\u0443 \u0440\u0430\u0437\u0432\u0435 \u043d\u0435 \u043f\u0440\u043e\u0449\u0435? <code>showcert<\/code> \u0441\u0430\u043c (\u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u043f\u043e\u0440\u0442\u0430) \u0434\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c STARTTLS (\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0446\u0438\u044e -t \/ &#8212;starttls, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, -t no \u0438\u043b\u0438 -t imap).<\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0441\u043a\u043e\u0440\u043e \u043f\u0440\u043e\u0442\u0443\u0445\u043d\u0435\u0442? \u041e\u043a\u0435\u0439!<\/p>\n<p><code>$ showcert mx.yandex.ru:25 -qw 200 || echo PROBLEM<br \/> mx.yandex.ru:25 expires in 165 days<br \/> PROBLEM<\/code><\/p>\n<p>-q &#8212; \u0442\u0438\u0445\u0438\u0439 \u0440\u0435\u0436\u0438\u043c, \u043d\u0435 \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, -w 200 &#8212; \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u0434\u043e\u043c \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0434\u043e \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u044c\u0448\u0435 200 \u0434\u043d\u0435\u0439. <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c https \u0432\u0435\u0431\u0441\u0430\u0439\u0442? <code>showcert github.com (\u041d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441?)<\/code><\/p>\n<p>&#171;\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c&#187; fullchain.pem \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0432\u0437\u044f\u0442\u044c \u0435\u0433\u043e \u0438 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0432 PEM):<\/p>\n<p><code>$ showcert google.com --chain -o pem > fullchain.pem<\/code><\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u043c\u043f\u0430 (\u043d\u0435 \u0441 \u0433\u0443\u0433\u043b\u0430, \u0430 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430) &#8212; \u0434\u0430\u0436\u0435 md5 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u043e\u0448\u0435\u043b\u0441\u044f!<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 (fullchain.pem \u0438\u043b\u0438 cert.pem). <\/p>\n<p><code>$ showcert fullchain.pem<\/code><\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#8212;chain \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0441\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443. \u0418 \u043a\u043b\u044e\u0447 <code>-w<\/code> \u0442\u043e\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h3>\u0424\u043e\u0440\u043c\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432<\/h3>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (<code>-o brief<\/code>) \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f (\u0432\u0441\u0435, \u0447\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0430\u0436\u043d\u043e, \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043b\u0438\u0448\u043d\u0435\u0433\u043e). <code>-o full<\/code> \u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0430\u043c\u043f (\u043a\u0430\u043a openssl), <code>-o pem<\/code> \u0434\u0430\u0441\u0442 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432 PEM \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u0443\u0434\u043e\u0431\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0432 \u0444\u0430\u0439\u043b \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435). <\/p>\n<p>\u0415\u0449\u0435 \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 <code>-o names<\/code> &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0438\u043c\u0435\u043d\u0430 \u0438\u0437 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0438 \u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f <code>-o dnames<\/code>, \u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435.<\/p>\n<h3>\u0421\u0430\u0445\u0430\u0440 \u0434\u043b\u044f LetsEncrypt <\/h3>\n<p>\u041c\u044b \u043c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c LetsEncrypt, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 showcert \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043a\u0438 (\u0430 \u0442\u043e \u0438 \u0441\u043e\u0442\u043d\u0438) \u0441\u0430\u0439\u0442\u043e\u0432, \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442. \u0414\u0430, <code>certbot renew<\/code> \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438\u0445, \u043d\u043e \u0441\u0430\u0439\u0442\u044b \u0436\u0438\u0432\u044b\u0435, \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438 \u0438 \u0441 \u043d\u0438\u043c\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0447\u0443\u0434\u0435\u0441\u0430. \u0422\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f DocumentRoot, \u0442\u043e \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430 rewrite\/redirect, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0442\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u043a\u0443\u0434\u0430-\u0442\u043e \u0443\u0435\u0434\u0435\u0442&#8230; \u0412 \u043e\u0431\u0449\u0435\u043c, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u043e\u0433\u0434\u0430 \u0444\u0435\u0439\u043b\u044f\u0442\u0441\u044f \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u044e\u0442. \u0410 \u043a\u043e\u0433\u0434\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u043c\u043d\u043e\u0433\u043e, \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e.<\/p>\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/okerr.com\/\" rel=\"noopener noreferrer nofollow\">okerr<\/a> (<a href=\"https:\/\/habr.com\/ru\/post\/506062\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e okerr \u043d\u0430 \u0445\u0430\u0431\u0440\u0435<\/a>) \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430. \u041d\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 open source \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u0420\u0430\u043d\u044c\u0448\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0438\u043f\u0430 sslcert \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 (\u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0430\u0439\u0442\u044b \u0432\u0435\u0434\u044c \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u0443\u043c\u0438\u0440\u0430\u044e\u0442 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u044e\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440). \u041d\u043e \u0441 showcert \u0441\u0442\u0430\u043b\u043e \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435:<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 LetsEncrypt \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0435\u0449\u0435 \u0441\u0432\u0435\u0436\u0438:<\/p>\n<p><code># showcert :le -qw<br \/>\/etc\/letsencrypt\/live\/example.com\/fullchain.pem expires in 19 days<br \/>\/etc\/letsencrypt\/live\/example.net\/fullchain.pem expires in 19 days<br \/># echo $?<br \/>2<\/code><\/p>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0448\u0435 &#8212; \u0441\u0438\u043d\u043e\u043d\u0438\u043c <code>showcert \/etc\/letsencrypt\/live\/*\/fullchain.pem -qw<\/code>, \u0430 \u043a\u043e\u0434 :le \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c. \u041d\u0443 \u0438 \u043a\u043e\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0434\u043e\u0431\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0435, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445. \u0423 \u043d\u0430\u0441 showcert \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 okerrupdate\/okerrmod, \u0432 \u043e\u043a\u0435\u0440\u0440 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0446\u0435\u043f\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 &#8212; \u0442\u043e\u0436\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u0446\u0435\u043f\u0438\u0442\u044c showcert.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433, \u0442\u043e showcert :le -qw \u0432 cron \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 &#8212; \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f, \u0438 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0447\u0438\u043d\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043e\u043f\u0446\u0438\u044f: -o dnames \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 -d, \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445 certbot:<\/p>\n<p><code>$ showcert -o dnames habr.ru<br \/> -d habr.ru -d www.habr.ru<\/code><\/p>\n<p>\u0414\u043b\u044f \u0434\u0432\u0443\u0445 \u0438\u043c\u0435\u043d, \u043a\u0430\u043a \u0443 \u0445\u0430\u0431\u0440\u0430 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0438\u043c\u0435\u043d \u043c\u043d\u043e\u0433\u043e, \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0433\u043e &#8212; \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f. \u041f\u0440\u043e\u0449\u0435 \u0447\u0435\u0440\u0435\u0437 showcert \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c showcert \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435:<\/p>\n<p><code>certbot certonly --webroot \/var\/www\/habr `showcert -o dnames habr.ru`<\/code><\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>showcert -o dnames google.com<\/code>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0447\u0430\u0441\u0442\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 &#8212; \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e! \u041f\u0440\u0438\u0433\u043e\u0434\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 (\u0447\u0435\u0440\u0435\u0437 openssl \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435). \u0411\u0435\u0437 \u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c, \u043d\u043e \u0441 \u043d\u0435\u0439 \u043f\u0440\u043e\u0449\u0435.<\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/681922\/\"> https:\/\/habr.com\/ru\/post\/681922\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><a href=\"https:\/\/github.com\/yaroslaff\/showcert\/\" rel=\"noopener noreferrer nofollow\">showcert<\/a> &#8212; \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f CLI \u0443\u0442\u0438\u043b\u0438\u0442\u043a\u0430, \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 openssl \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432. \u041e\u043d\u0430 \u0443\u043c\u0435\u0435\u0442 1% \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 openssl, \u043d\u043e \u0437\u0430\u0442\u043e \u0443\u043c\u0435\u0435\u0442 [\u043f\u043e\u0447\u0442\u0438] \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u043e\u0439 \u0436\u0438\u0437\u043d\u0438 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c openssl. \u0418 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412\u0437\u044f\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 (\u0438\u043b\u0438 \u0446\u0435\u043f\u043e\u0447\u043a\u0443) \u0438\u0437 stdin, \u0444\u0430\u0439\u043b\u0430(\u0444\u0430\u0439\u043b\u043e\u0432) \u0438\u043b\u0438 \u0438\u0437 TLS \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (HTTPS, POP3S, IMAPS), \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0447\u0435\u0440\u0435\u0437 STARTTLS (\u0434\u043b\u044f SMTP, POP3, IMAP)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c &#171;\u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c&#187; \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0438 \u0435\u0441\u043b\u0438 \u0441\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438\u0441\u0442\u0435\u043a\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 N \u0434\u043d\u0435\u0439 &#8212; \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 (\u0446\u0435\u043f\u043e\u0447\u043a\u0443) \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435), \u043f\u043e\u043b\u043d\u043e\u0439, \u0432 PEM \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432 cert.pem \u0438\u043b\u0438 fullchain.pem).<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c, \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0445\u043e\u0447\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u0430\u0442\u0443 \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u044f\u043d\u0434\u0435\u043a\u0441\u0430, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0433\u0443\u0433\u043b\u044e, \u043f\u043e\u0442\u043e\u043c \u0441\u043d\u043e\u0440\u043e\u0432\u0438\u0441\u0442\u043e \u043f\u0438\u0448\u0443 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<p><code>$ echo | openssl s_client  -connect mx.yandex.ru:25 -starttls smtp 2>&amp;1 | openssl x509 -noout -dates<\/code><\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0447\u0430\u0442\u0430\u044e \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443, \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u043d\u0435\u043c\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e\u043a\u043e\u0440\u0435\u043d\u043d\u044b\u0445 \u0441\u043b\u043e\u0432 \u0438\u0437 \u0444\u043b\u043e\u0442\u0441\u043a\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u044b, \u0430 \u0432\u0435\u0434\u044c \u044f \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u043b\u0443\u0436\u0438\u043b&#8230; \u0410 \u0442\u0435\u043f\u0435\u0440\u044c, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0434\u0430\u0442\u0443, \u0430 \u0435\u0449\u0435 \u0438 \u043a\u0430\u043a-\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0434\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044c\u0448\u0435 20 \u0434\u043d\u0435\u0439&#8230; \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430? \u041c\u043d\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 openssl \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0435\u043b\u043b \u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/p>\n<h3>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 showcert<\/h3>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c (\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438: <code>pip3 install showcert<\/code>) \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0441:<\/p>\n<p><code>$ showcert mx.yandex.ru:25<br \/> Names: mx.yandex.ru mx.yandex.net<br \/> notBefore: 2022-07-25 11:16:45 (15 days old)<br \/> notAfter: 2023-01-22 20:59:59 (165 days left)<br \/> Issuer: C=BE O=GlobalSign nv-sa CN=GlobalSign RSA OV SSL CA 2018<br \/><\/code><br \/>\u041d\u0443 \u0440\u0430\u0437\u0432\u0435 \u043d\u0435 \u043f\u0440\u043e\u0449\u0435? <code>showcert<\/code> \u0441\u0430\u043c (\u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u043f\u043e\u0440\u0442\u0430) \u0434\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c STARTTLS (\u043d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0446\u0438\u044e -t \/ &#8212;starttls, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, -t no \u0438\u043b\u0438 -t imap).<\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0441\u043a\u043e\u0440\u043e \u043f\u0440\u043e\u0442\u0443\u0445\u043d\u0435\u0442? \u041e\u043a\u0435\u0439!<\/p>\n<p><code>$ showcert mx.yandex.ru:25 -qw 200 || echo PROBLEM<br \/> mx.yandex.ru:25 expires in 165 days<br \/> PROBLEM<\/code><\/p>\n<p>-q &#8212; \u0442\u0438\u0445\u0438\u0439 \u0440\u0435\u0436\u0438\u043c, \u043d\u0435 \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, -w 200 &#8212; \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u0434\u043e\u043c \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0434\u043e \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u044c\u0448\u0435 200 \u0434\u043d\u0435\u0439. <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c https \u0432\u0435\u0431\u0441\u0430\u0439\u0442? <code>showcert github.com (\u041d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441?)<\/code><\/p>\n<p>&#171;\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c&#187; fullchain.pem \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0432\u0437\u044f\u0442\u044c \u0435\u0433\u043e \u0438 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0432 PEM):<\/p>\n<p><code>$ showcert google.com --chain -o pem > fullchain.pem<\/code><\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0430\u043c\u043f\u0430 (\u043d\u0435 \u0441 \u0433\u0443\u0433\u043b\u0430, \u0430 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430) &#8212; \u0434\u0430\u0436\u0435 md5 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u043e\u0448\u0435\u043b\u0441\u044f!<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 (fullchain.pem \u0438\u043b\u0438 cert.pem). <\/p>\n<p><code>$ showcert fullchain.pem<\/code><\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c &#8212;chain \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0441\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443. \u0418 \u043a\u043b\u044e\u0447 <code>-w<\/code> \u0442\u043e\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h3>\u0424\u043e\u0440\u043c\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432<\/h3>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (<code>-o brief<\/code>) \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f (\u0432\u0441\u0435, \u0447\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0430\u0436\u043d\u043e, \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043b\u0438\u0448\u043d\u0435\u0433\u043e). <code>-o full<\/code> \u0434\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0430\u043c\u043f (\u043a\u0430\u043a openssl), <code>-o pem<\/code> \u0434\u0430\u0441\u0442 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432 PEM \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u0443\u0434\u043e\u0431\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0432 \u0444\u0430\u0439\u043b \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0434\u0438\u0441\u043a\u0435). <\/p>\n<p>\u0415\u0449\u0435 \u0435\u0441\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 <code>-o names<\/code> &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0438\u043c\u0435\u043d\u0430 \u0438\u0437 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0438 \u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f <code>-o dnames<\/code>, \u043e \u043d\u0435\u0439 \u043d\u0438\u0436\u0435.<\/p>\n<h3>\u0421\u0430\u0445\u0430\u0440 \u0434\u043b\u044f LetsEncrypt <\/h3>\n<p>\u041c\u044b \u043c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c LetsEncrypt, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 showcert \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043a\u0438 (\u0430 \u0442\u043e \u0438 \u0441\u043e\u0442\u043d\u0438) \u0441\u0430\u0439\u0442\u043e\u0432, \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442. \u0414\u0430, <code>certbot renew<\/code> \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438\u0445, \u043d\u043e \u0441\u0430\u0439\u0442\u044b \u0436\u0438\u0432\u044b\u0435, \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438 \u0438 \u0441 \u043d\u0438\u043c\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0447\u0443\u0434\u0435\u0441\u0430. \u0422\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f DocumentRoot, \u0442\u043e \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430 rewrite\/redirect, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443, \u0442\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u043a\u0443\u0434\u0430-\u0442\u043e \u0443\u0435\u0434\u0435\u0442&#8230; \u0412 \u043e\u0431\u0449\u0435\u043c, \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u043e\u0433\u0434\u0430 \u0444\u0435\u0439\u043b\u044f\u0442\u0441\u044f \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u044e\u0442. \u0410 \u043a\u043e\u0433\u0434\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u043c\u043d\u043e\u0433\u043e, \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e.<\/p>\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/okerr.com\/\" rel=\"noopener noreferrer nofollow\">okerr<\/a> (<a href=\"https:\/\/habr.com\/ru\/post\/506062\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e okerr \u043d\u0430 \u0445\u0430\u0431\u0440\u0435<\/a>) \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430. \u041d\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 open source \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u0420\u0430\u043d\u044c\u0448\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0442\u0438\u043f\u0430 sslcert \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 (\u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0430\u0439\u0442\u044b \u0432\u0435\u0434\u044c \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u0443\u043c\u0438\u0440\u0430\u044e\u0442 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u044e\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440). \u041d\u043e \u0441 showcert \u0441\u0442\u0430\u043b\u043e \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435:<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 LetsEncrypt \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0435\u0449\u0435 \u0441\u0432\u0435\u0436\u0438:<\/p>\n<p><code># showcert :le -qw<br \/>\/etc\/letsencrypt\/live\/example.com\/fullchain.pem expires in 19 days<br \/>\/etc\/letsencrypt\/live\/example.net\/fullchain.pem expires in 19 days<br \/># echo $?<br \/>2<\/code><\/p>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0448\u0435 &#8212; \u0441\u0438\u043d\u043e\u043d\u0438\u043c <code>showcert \/etc\/letsencrypt\/live\/*\/fullchain.pem -qw<\/code>, \u0430 \u043a\u043e\u0434 :le \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c. \u041d\u0443 \u0438 \u043a\u043e\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0434\u043e\u0431\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0435, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445. \u0423 \u043d\u0430\u0441 showcert \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 okerrupdate\/okerrmod, \u0432 \u043e\u043a\u0435\u0440\u0440 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0446\u0435\u043f\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 &#8212; \u0442\u043e\u0436\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u0446\u0435\u043f\u0438\u0442\u044c showcert.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433, \u0442\u043e showcert :le -qw \u0432 cron \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 &#8212; \u043e\u043f\u043e\u0432\u0435\u0441\u0442\u0438\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f, \u0438 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0447\u0438\u043d\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043e\u043f\u0446\u0438\u044f: -o dnames \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 -d, \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445 certbot:<\/p>\n<p><code>$ showcert -o dnames habr.ru<br \/> -d habr.ru -d www.habr.ru<\/code><\/p>\n<p>\u0414\u043b\u044f \u0434\u0432\u0443\u0445 \u0438\u043c\u0435\u043d, \u043a\u0430\u043a \u0443 \u0445\u0430\u0431\u0440\u0430 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0438\u043c\u0435\u043d \u043c\u043d\u043e\u0433\u043e, \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0433\u043e &#8212; \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f. \u041f\u0440\u043e\u0449\u0435 \u0447\u0435\u0440\u0435\u0437 showcert \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0430\u043c showcert \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435:<\/p>\n<p><code>certbot certonly --webroot \/var\/www\/habr `showcert -o dnames habr.ru`<\/code><\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>showcert -o dnames google.com<\/code>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f \u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0447\u0430\u0441\u0442\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 &#8212; \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e! \u041f\u0440\u0438\u0433\u043e\u0434\u043d\u0430 \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u0443\u0445\u0430\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 (\u0447\u0435\u0440\u0435\u0437 openssl \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435). \u0411\u0435\u0437 \u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c, \u043d\u043e \u0441 \u043d\u0435\u0439 \u043f\u0440\u043e\u0449\u0435.<\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \ud83d\ude42<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/681922\/\"> https:\/\/habr.com\/ru\/post\/681922\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-337096","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337096"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/337096\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}