{"id":2130,"date":"2023-02-13T15:56:02","date_gmt":"2023-02-13T07:56:02","guid":{"rendered":"https:\/\/blog.kingsbestone.com\/?p=2130"},"modified":"2023-02-13T21:59:03","modified_gmt":"2023-02-13T13:59:03","slug":"nginx%e9%83%a8%e7%bd%b2https","status":"publish","type":"post","link":"https:\/\/blog.kingsbestone.com\/?p=2130","title":{"rendered":"Centos7 NGINX\u90e8\u7f72HTTPS TLSv1.3"},"content":{"rendered":"<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7ed9NGINX\u90e8\u7f72HTTPS\uff0c\u5e76\u8c03\u4f18\u5b89\u5168\u7b49\u7ea7\u4e3aA+\uff08myssl.com\uff09\uff0c\u4f7f\u7528\u6700\u65b0\u534f\u8baeTLSv1.3\u90e8\u7f72\u3002<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u90e8\u7f72\u73af\u5883\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7cfb\u7edf\uff1aCentos7<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u66f4\u6362YUM\u6e90<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5173\u95edSELinux<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5173\u95ed\u9632\u706b\u5899<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7533\u8bf7 Let\u2019s Encrypt \u8bc1\u4e66<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e8b\u60c5\u5148\u89e3\u6790\u57df\u540d\u5230VPS<\/span><\/li>\n<\/ul>\n<hr \/>\n<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">1.\u5b89\u88c5OPENSSL<\/span><\/h1>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-1.\u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">yum -y update<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-2.\u5b89\u88c5\u7f16\u8bd1\u6240\u9700\u8f6f\u4ef6<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">yum install -y make gcc perl-core pcre-devel zlib-devel<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-3.\u9996\u5148\u4e0b\u8f7d\u5b89\u88c5\u5305\u5e76\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u3002<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5b89\u88c5\u5305\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/openssl\/openssl\/releases\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/openssl\/openssl\/releases<\/a><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-4.\u89e3\u538b\u5b89\u88c5\u5305<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">tar -zxvf &lt;\u538b\u7f29\u5305\u5168\u540d&gt;<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-5.\u8fdb\u5165\u89e3\u538b\u540e\u7684openssl\u76ee\u5f55<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-6.\u914d\u7f6e\u7f16\u8bd1\u53c2\u6570<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">.\/config --prefix=\/usr --openssldir=\/etc\/ssl --libdir=lib no-shared zlib-dynamic<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-7.\u7f16\u8bd1<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">make<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-8.\u6d4b\u8bd5\u7f16\u8bd1\u5305<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">make test<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-9.\u5b89\u88c5\u7f16\u8bd1\u5b8c\u6210\u7684\u5305<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">make install<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-10.\u521b\u5efa\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u6587\u4ef6<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">vi \/etc\/profile.d\/openssl.sh<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-11.\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">export LD_LIBRARY_PATH=\/usr\/local\/lib:\/usr\/local\/lib64<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-12.\u52a0\u8f7d\u73af\u5883\u53d8\u91cf<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">source \/etc\/profile.d\/openssl.sh<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-13.\u67e5\u770bOPENSSL\u7248\u672c\uff0c\u4ee5\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">openssl version -a<\/pre>\n<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">2.\u5b89\u88c5NGINX<\/span><\/h1>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-1.\u5b89\u88c5\u6240\u9700\u8f6f\u4ef6<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel gd gd-devel openssl openssl-devel<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-2.\u7ed9NGINX\u670d\u52a1\u521b\u5efa\u7528\u6237\u548c\u79df<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/usr\/sbin\/groupadd www\r\n\/usr\/sbin\/useradd -g www www<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-3.\u8bbe\u7f6eLinux\u9ad8\u8d1f\u8f7d\u53c2\u6570<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">ulimit -SHn 65535<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-4.\u4e0b\u8f7dNGINX\u5b89\u88c5\u5305\u5e76\u4e0a\u4f20\u5230\u670d\u52a1\u5668<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">NGINX\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/nginx.org\/en\/download.html\" target=\"_blank\" rel=\"noopener\">http:\/\/nginx.org\/en\/download.html<\/a><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-5.\u89e3\u538bNGINX\u5b89\u88c5\u5305<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">tar -zxvf &lt;\u538b\u7f29\u5305\u540d\u5b57&gt;<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-6.\u8fdb\u5165\u89e3\u538b\u51fa\u6765\u7684NGINX\u76ee\u5f55<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-7.\u914d\u7f6eNGINX\u7f16\u8bd1\u53c2\u6570<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">NGINX\u5b98\u7f51\u53c2\u6570\u8bf4\u660e\uff1a<a href=\"http:\/\/nginx.org\/en\/docs\/configure.html\" target=\"_blank\" rel=\"noopener\">http:\/\/nginx.org\/en\/docs\/configure.html<\/a><\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">.\/configure \\\r\n--prefix=\/usr\/local\/nginx \\\r\n--user=www \\\r\n--group=www \\\r\n--with-pcre \\\r\n--with-openssl=\/home\/openssl-3.0.8 \\\r\n--with-http_ssl_module \\\r\n--with-http_v2_module \\\r\n--with-http_realip_module \\\r\n--with-http_addition_module \\\r\n--with-http_sub_module \\\r\n--with-http_dav_module \\\r\n--with-http_flv_module \\\r\n--with-http_mp4_module \\\r\n--with-http_gunzip_module \\\r\n--with-http_gzip_static_module \\\r\n--with-http_random_index_module \\\r\n--with-http_secure_link_module \\\r\n--with-http_stub_status_module \\\r\n--with-http_auth_request_module \\\r\n--with-http_image_filter_module \\\r\n--with-http_slice_module \\\r\n--with-mail \\\r\n--with-threads \\\r\n--with-file-aio \\\r\n--with-stream \\\r\n--with-mail_ssl_module \\\r\n--with-stream_ssl_module<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-8.NGINX\u7f16\u8bd1\u5e76\u5b89\u88c5<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">make &amp;&amp; make install<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-9.\u521b\u5efasystemctl\u7cfb\u7edfNGINX\u5355\u5143<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">vi \/usr\/lib\/systemd\/system\/nginx.service<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-10.\u5199\u5165\u5982\u4e0b\u5185\u5bb9<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[Unit]\r\nDescription=The nginx HTTP and reverse proxy server\r\nAfter=syslog.target network.target remote-fs.target nss-lookup.target\r\n\r\n[Service]\r\nType=forking\r\nPIDFile=\/usr\/local\/nginx\/logs\/nginx.pid\r\nExecStartPre=\/usr\/local\/nginx\/sbin\/nginx -t\r\nExecStart=\/usr\/local\/nginx\/sbin\/nginx\r\nExecReload=\/usr\/local\/nginx\/sbin\/nginx -s reload\r\nExecStop=\/usr\/local\/nginx\/sbin\/nginx -s stop\r\nPrivateTmp=true\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-11.\u67e5\u770b\u8fd0\u884c\u72b6\u6001\uff0c\u786e\u8ba4\u662f\u5426\u8bbe\u7f6e\u6210\u529f<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">systemctl status nginx.service<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-12.\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\u5e76\u91cd\u542fNGINX\u670d\u52a1\uff0c\u7136\u540e\u67e5\u770b\u72b6\u6001<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">systemctl enable nginx.service &amp;&amp; systemctl restart nginx.service &amp;&amp; systemctl status nginx.service<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-13.\u521b\u5efa\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u6587\u4ef6<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">vi \/etc\/profile.d\/nginx.sh<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-14.\u5199\u5165\u5982\u4e0b\u5185\u5bb9<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">export PATH=\/usr\/local\/nginx\/sbin:$PATH<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-15.\u8f7d\u5165\u73af\u5883\u53d8\u91cf<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">source \/etc\/profile.d\/nginx.sh<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-16.\u67e5\u770bNGINX\u7248\u672c\uff0c\u786e\u8ba4\u662f\u5426\u8bbe\u7f6e\u6210\u529f<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">nginx -V<\/pre>\n<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">3.\u914d\u7f6eNGINX<\/span><\/h1>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-1.NGINX\u7a0b\u5e8f\u76ee\u5f55<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u672c\u6559\u7a0b\u9ed8\u8ba4\u5b89\u88c5\u76ee\u5f55\u4e3a\uff1a\/usr\/local\/nginx<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">NGINX\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\u4e3a\uff1a\/usr\/local\/nginx\/conf\/nginx.conf<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-2.\u7f16\u8f91NGINX\u914d\u7f6e\u6587\u4ef6\u4e3a\u5982\u4e0b\u5185\u5bb9\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u8bb0\u5f97\u66ff\u6362\u81ea\u5df1\u7684\u57df\u540d\u548c\u8bc1\u4e66\u4e4b\u7c7b\u7684\u76f8\u5173\u5185\u5bb9<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">SSL\u914d\u7f6e\u751f\u6210\u7f51\u7ad9\uff08\u53ef\u4ee5\u53c2\u8003\uff09\uff1a<a href=\"https:\/\/ssl-config.mozilla.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/ssl-config.mozilla.org\/<\/a><\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">#user  nobody;\r\nworker_processes  1;\r\n\r\n#error_log  logs\/error.log;\r\n#error_log  logs\/error.log  notice;\r\n#error_log  logs\/error.log  info;\r\n\r\n#pid        logs\/nginx.pid;\r\n\r\n\r\nevents {\r\n    worker_connections  1024;\r\n}\r\n\r\n\r\nhttp {\r\n    include       mime.types;\r\n    default_type  application\/octet-stream;\r\n\r\n    #log_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\r\n    #                  '$status $body_bytes_sent \"$http_referer\" '\r\n    #                  '\"$http_user_agent\" \"$http_x_forwarded_for\"';\r\n\r\n    #access_log  logs\/access.log  main;\r\n\r\n    sendfile        on;\r\n    #tcp_nopush     on;\r\n\r\n    #keepalive_timeout  0;\r\n    keepalive_timeout  65;\r\n\r\n    gzip  on;\r\n\r\n  server {\r\n    listen       80 default_server;\r\n    #server_name  localhost;\r\n\r\n    location \/ {\r\n      return 301 https:\/\/$host$request_uri;\r\n    }\r\n\r\n    #charset koi8-r;\r\n\r\n    #access_log  logs\/host.access.log  main;\r\n\r\n    #location \/ {\r\n    #    root   html;\r\n    #    index  index.html index.htm;\r\n    #}\r\n\r\n    #error_page  404              \/404.html;\r\n\r\n    # redirect server error pages to the static page \/50x.html\r\n    #\r\n    #error_page   500 502 503 504  \/50x.html;\r\n    #location = \/50x.html {\r\n    #    root   html;\r\n    #}\r\n\r\n    # proxy the PHP scripts to Apache listening on 127.0.0.1:80\r\n    #\r\n    #location ~ \\.php$ {\r\n    #    proxy_pass   http:\/\/127.0.0.1;\r\n    #}\r\n\r\n    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000\r\n    #\r\n    #location ~ \\.php$ {\r\n    #    root           html;\r\n    #    fastcgi_pass   127.0.0.1:9000;\r\n    #    fastcgi_index  index.php;\r\n    #    fastcgi_param  SCRIPT_FILENAME  \/scripts$fastcgi_script_name;\r\n    #    include        fastcgi_params;\r\n    #}\r\n\r\n    # deny access to .htaccess files, if Apache's document root\r\n    # concurs with nginx's one\r\n    #\r\n    #location ~ \/\\.ht {\r\n    #    deny  all;\r\n    #}\r\n  }\r\n\r\n\r\n    # another virtual host using mix of IP-, name-, and port-based configuration\r\n    #\r\n    #server {\r\n    #    listen       8000;\r\n    #    listen       somename:8080;\r\n    #    server_name  somename  alias  another.alias;\r\n\r\n    #    location \/ {\r\n    #        root   html;\r\n    #        index  index.html index.htm;\r\n    #    }\r\n    #}\r\n\r\n\r\n    # HTTPS server\r\n    \r\n  server {\r\n    listen       443 ssl http2;\r\n    #server_name  localhost;\r\n\r\n    ssl_certificate      \/etc\/letsencrypt\/live\/ssl.kingsbestone.com\/fullchain.pem;\r\n    ssl_certificate_key  \/etc\/letsencrypt\/live\/ssl.kingsbestone.com\/privkey.pem;\r\n    ssl_session_timeout 1d;\r\n    ssl_session_cache shared:MozSSL:10m;  # about 40000 sessions\r\n\r\n    # intermediate configuration\r\n    ssl_protocols TLSv1.3 TLSv1.2;\r\n    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;\r\n    ssl_prefer_server_ciphers on;\r\n\r\n    # HSTS (ngx_http_headers_module is required) (63072000 seconds)\r\n    add_header Strict-Transport-Security \"max-age=63072000\" always;\r\n\r\n    location \/ {\r\n      root   html;\r\n      index  index.html index.htm;\r\n    }\r\n  }\r\n\r\n}\r\n<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-3.\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u6709\u9519<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">nginx -t<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-4.\u91cd\u542fNGINX\u670d\u52a1<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">systemctl restart nginx.service<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-5.\u67e5\u770bNGINX\u8fd0\u884c\u72b6\u6001\uff0c\u770b\u662f\u5426\u6709\u7ea2\u8272\u62a5\u9519\uff0c\u5982\u679c\u6ca1\u6709\u5219\u4ee3\u8868\u6b63\u5e38\u3002<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">systemctl status nginx.service<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-6.\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\u4f60\u7684\u57df\u540d\u770b\u662f\u5426\u5de5\u4f5c\u6b63\u5e38\u3002<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6253\u5f00\u6d4f\u89c8\u5668\u68c0\u67e5\u9009\u9879\uff0c\u627e\u5230\u5b89\u5168\u9009\u9879\uff0c\u67e5\u770b\u534f\u8bae\u662f\u5426\u4e3a tls 1.3 \uff1b\u5982\u679c\u662f\u5219\u4ee3\u8868\u6b63\u5e38<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6253\u5f00 myssl.com \u7f51\u7ad9\uff0c\u8f93\u5165\u4f60\u7684\u57df\u540d\u68c0\u67e5\u4f60\u7684HTTPS\u914d\u7f6e\u662f\u5426\u8db3\u591f\u5b89\u5168\uff0c\u5982\u679c\u4e3aA+\u6700\u9ad8\u5219\u4ee3\u8868\u6b63\u5e38\u3002<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" class=\"aligncenter wp-image-2160 size-full\" src=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06.png\" alt=\"\" width=\"1920\" height=\"937\" srcset=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06.png 1920w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06-300x146.png 300w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06-1024x500.png 1024w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06-768x375.png 768w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-58-06-1536x750.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" class=\"aligncenter wp-image-2161 size-full\" src=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26.png\" alt=\"\" width=\"1916\" height=\"937\" srcset=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26.png 1916w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26-300x147.png 300w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26-1024x501.png 1024w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26-768x376.png 768w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2023\/02\/Snipaste_2023-02-13_15-59-26-1536x751.png 1536w\" sizes=\"(max-width: 1916px) 100vw, 1916px\" \/><\/a><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-7.\u5b8c\u6210<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ed9NGINX\u90e8\u7f72HTTPS\uff0c\u5e76\u8c03\u4f18\u5b89\u5168\u7b49\u7ea7\u4e3aA+\uff08myssl.com\uff09\uff0c\u4f7f\u7528\u6700\u65b0\u534f\u8baeTLSv1.3\u90e8\u7f72\u3002 \u90e8\u7f72\u73af\u5883\uff1a \u7cfb\u7edf\uff1aCentos7 \u66f4\u6362YUM\u6e90 \u5173\u95edSELinux \u5173\u95ed\u9632\u706b\u5899 \u7533\u8bf7 Let\u2019s Encrypt \u8bc1\u4e66 \u4e8b\u60c5\u5148\u89e3\u6790\u57df\u540d\u5230VPS 1.\u5b89\u88c5OPENSSL 1-1.\u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6 yum -y updat &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Centos7 NGINX\u90e8\u7f72HTTPS TLSv1.3\" class=\"read-more button\" href=\"https:\/\/blog.kingsbestone.com\/?p=2130#more-2130\" aria-label=\"\u66f4\u591a Centos7 NGINX\u90e8\u7f72HTTPS TLSv1.3\">\u67e5\u770b\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[59,4],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/2130"}],"collection":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2130"}],"version-history":[{"count":33,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/2130\/revisions"}],"predecessor-version":[{"id":2165,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/2130\/revisions\/2165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/media\/212"}],"wp:attachment":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}