{"id":283830,"date":"2017-03-23T21:55:02","date_gmt":"2017-03-23T18:55:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283830"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283830","title":{"rendered":"\u0414\u0435\u043b\u0430\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432 2017 \u0433\u043e\u0434\u0443"},"content":{"rendered":"<h2>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0438\u0441\u043a\u0430\u043b ssl \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0431\u044b\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f StartSSl \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 Google Chrome \u0438 MozilaFirefox. \u0418 \u0437\u0434\u0435\u0441\u044c \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0418\u0442\u0430\u043a \u043d\u0430\u0447\u043d\u0435\u043c<\/h2>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f ssl \u0432 \u043a\u043e\u0440\u043d\u0435.<\/p>\n<pre><code class=\"apache\">mkdir \/ssl<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0439\u0434\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0438 Apache<\/p>\n<pre><code class=\"apache\">cd \/etc\/apache2\/sites-available<\/code><\/pre>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0430.<\/p>\n<pre><code class=\"apache\">sudo wget https:\/\/linode.com\/docs\/assets\/apache2-roundcube.sample.conf<\/code><\/pre>\n<p>  \u041f\u043e\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043d\u0430 root \u0438 \u043f\u0440\u0430\u0432\u0430.<\/p>\n<pre><code class=\"apache\">sudo chown root:root apache2-roundcube.sample.conf<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">sudo chmod 644 apache2-roundcube.sample.conf<\/code><\/pre>\n<p>  \u0418 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c.<\/p>\n<pre><code class=\"apache\">nano apache2-roundcube.sample.conf<\/code><\/pre>\n<p>  \u0412 \u0442\u0435\u0433\u0435 &lt;VirtualHost *:80&gt; \u0438 &lt;VirtualHost *:443&gt;<br \/>  ServerAdmin \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 webmaster@\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u0441\u0430\u0439\u0442\u0430.<br \/>  ServerName \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0430\u0439\u0442\u0430.<br \/>  DocumentRoot \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 \u0441\u0430\u0439\u0442, \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e:<\/p>\n<pre><code class=\"apache\">\/var\/www\/html\/<\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u0442\u0435\u0433\u0438 Directory \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043a\u0440\u043e\u043c\u0435:<\/p>\n<pre><code class=\"apache\">&lt;Directory \/var\/www\/roundcube&gt;...&lt;\/Directory&gt;<\/code><\/pre>\n<p>  \u0437\u0434\u0435\u0441\u044c \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0443\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \/var\/www\/roundcube \/var\/www\/html. \u0418 \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0443\u0442\u044c \u043a SSL \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c:<\/p>\n<pre><code class=\"apache\">  SSLCertificateFile \/etc\/apache2\/ssl\/webmail.example.com\/apache.crt <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">  SSLCertificateKeyFile \/etc\/apache2\/ssl\/webmail.example.com\/apache.key <\/code><\/pre>\n<p>  \u043d\u0430 <\/p>\n<pre><code class=\"apache\">  SSLCertificateFile \/ssl\/crt.crt<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">  SSLCertificateKeyFile \/ssl\/key.key<\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0430:<\/p>\n<pre><code class=\"apache\"> # Apache2 vhost configuration sample for Roundcube # https:\/\/linode.com\/docs\/email\/clients\/installing-roundcube-on-ubuntu-14-04\/ &lt;VirtualHost *:80&gt;   # Virtual host configuration + information (replicate changes to *:443 below)   ServerAdmin webmaster@uranius.pp.ua   ServerName uranius.pp.ua   DocumentRoot \/var\/www\/html\/   # ErrorLog \/var\/log\/apache2\/webmail.example.com\/error.log   # CustomLog \/var\/log\/apache2\/webmail.example.com\/access.log combined   # Permanently redirect all HTTP requests to HTTPS   RewriteEngine on   RewriteCond %{SERVER_PORT} !^443$   RewriteRule ^\/(.*) https:\/\/%{HTTP_HOST}\/$1 [NC,R=301,L] &lt;\/VirtualHost&gt; &lt;IfModule mod_ssl.c&gt; &lt;VirtualHost *:443&gt;   # Virtual host configuration + information (replicate changes to *:80 above)   ServerAdmin webmaster@uranius.pp.ua   ServerName uranius.pp.ua   DocumentRoot \/var\/www\/html   # ErrorLog \/var\/log\/apache2\/webmail.example.com\/error.log   # CustomLog \/var\/log\/apache2\/webmail.example.com\/access.log combined   # SSL certificate + engine configuration   SSLEngine on   SSLCertificateFile \/ssl\/crt.crt   SSLCertificateKeyFile \/ssl\/key.key   # Roundcube directory permissions + restrictions   &lt;Directory \/var\/www\/html\/&gt;     Options -Indexes     AllowOverride All   &lt;\/Directory&gt; &lt;\/VirtualHost&gt; &lt;\/IfModule&gt;<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0444\u0430\u0439\u043b <\/p>\n<pre><code class=\"apache\">sudo mv apache2-roundcube.sample.conf uranius.pp.ua.conf<\/code><\/pre>\n<p>  \u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438<\/p>\n<pre><code class=\"apache\">sudo a2dissite 000-default.conf default-ssl.conf<\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438.<\/p>\n<pre><code class=\"apache\">sudo a2enmod deflate expires headers rewrite ssl<\/code><\/pre>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u0430\u0439\u0442\u0430.<\/p>\n<pre><code class=\"apache\">a2ensite uranius.pp.ua.conf<\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442. \u0418\u0434\u0435\u043c \u043d\u0430 <a href=\"http:\/\/www.sslforfree.com\">www.sslforfree.com<\/a>. \u0412\u0432\u043e\u0434\u0438\u043c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c. \u0414\u0430\u043b\u0435\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u0418\u0434\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443, \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 \u0441\u0430\u0439\u0442 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e:<\/p>\n<pre><code class=\"apache\">cd \/var\/www\/html\/<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">mkdir .wellknown<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">cd .wellknown<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">mkdir acme-challenge<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">cd acme-challenge<\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c \u0442\u0443\u0434\u0430 \u0444\u0430\u0439\u043b \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Download SSl Certificate. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c zip \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043f\u0430\u043f\u043a\u0443 ssl \u0432 \u043a\u043e\u0440\u043d\u0435. \u0417\u0430\u0439\u0434\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c:<\/p>\n<pre><code class=\"apache\">cd \/ssl<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">mv certificate.crt crt.crt<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">mv private.key key.key<\/code><\/pre>\n<p>  \u0418 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0438:<\/p>\n<pre><code class=\"apache\">apachectl configtest<\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0441\u0430\u0439\u0442 \u0433\u043e\u0442\u043e\u0432.<\/p>\n<pre><code class=\"apache\">\/etc\/init.d\/apache2 restart<\/code><\/pre>\n<p> \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:\/\/habrahabr.ru\/post\/324740\/\"> https:\/\/habrahabr.ru\/post\/324740\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<h2>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0438\u0441\u043a\u0430\u043b ssl \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0431\u044b\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f StartSSl \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 Google Chrome \u0438 MozilaFirefox. \u0418 \u0437\u0434\u0435\u0441\u044c \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.  <\/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-283830","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283830","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=283830"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283830\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}