{"id":535125,"date":"2021-08-27T23:45:43","date_gmt":"2021-08-27T15:45:43","guid":{"rendered":"http:\/\/4563.org\/?p=535125"},"modified":"2021-08-27T23:45:43","modified_gmt":"2021-08-27T15:45:43","slug":"config-ssl-context-with-certificate-file-%e8%bf%99%e4%b8%aa-ssl-%e9%97%ae%e9%a2%98%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=535125","title":{"rendered":"Config SSL Context with Certificate File \u8fd9\u4e2a SSL \u95ee\u9898\u600e\u4e48\u89e3\u51b3\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> Config SSL Context with Certificate File \u8fd9\u4e2a SSL \u95ee\u9898\u600e\u4e48\u89e3\u51b3\uff1f <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mifar <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>Config SSL Context with Certificate File: \/root\/6209699_11m.key and Key File:\/root\/6209699_11m.pem get SSL error: error:0900006e:PEM routines:OPENSSL_internal:NO_START_LINE:Expecting: TRUSTED CERTIFICATEerror:10000009:SSL routines:OPENSSL_internal:PEM routines <\/code><\/pre>\n<p>key \u548c pem \u6587\u4ef6\u90fd\u662f\u6b63\u5e38\u7684\u3002 \u6743\u9650\u4e5f\u7ed9\u4e86 777 \u5e94\u8be5\u4e0d\u662f\u8bfb\u4e0d\u51fa\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6c42\u89e3<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"6680568\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> NO_START_LINE <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6680569\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mifar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @dzdh \u4f46\u662f\u7528 VSC \u6253\u5f00\u683c\u5f0f\u90fd\u662f\u6b63\u5e38\u7684\uff0c\u5e76\u6ca1\u6709\u51fa\u73b0\u683c\u5f0f\u95ee\u9898\uff0c\u4e5f\u90fd\u662f UTF8 LF <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6680570\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jim9606 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u6211\u89c9\u5f97\u662f\u5185\u5bb9\u95ee\u9898\uff0c&#8212;BEGIN***&#8212; \u8fd9\u6837\u7684\u5934\u5c3e\u5206\u5272\u884c\u4e0d\u80fd\u7f3a\u5931\uff0c\u4e5f\u4e0d\u80fd\u7528 CRLF \u6362\u884c\u3002cert \u6587\u4ef6\u7528 openssl x509 -in ***.pem -text \u68c0\u67e5\u4e00\u4e0b\u80fd\u4e0d\u80fd\u6b63\u5e38\u89e3\u7801\u3002<br \/>\u800c\u4e14\u4f60\u597d\u50cf\u628a cert \u548c key \u6587\u4ef6\u641e\u6df7\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Config SSL Contex&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/535125"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=535125"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/535125\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=535125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=535125"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=535125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}