{"id":414,"date":"2018-04-20T00:00:25","date_gmt":"2018-04-19T16:00:25","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=414"},"modified":"2018-04-20T00:00:25","modified_gmt":"2018-04-19T16:00:25","slug":"nginx-show-ssl-error0906d066pem-routinespem_read_biobad-end-line-error-resolve","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/nginx-show-ssl-error0906d066pem-routinespem_read_biobad-end-line-error-resolve.html","title":{"rendered":"Nginx\u63d0\u793aSSL: error:0906D066:PEM routines:PEM_read_bio:bad end line\u9519\u8bef\u89e3\u51b3"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u7ed9Nginx\u914d\u7f6e\u8bc1\u4e66\u7684\u65f6\u5019\uff0c\u9047\u5230\u4e86\u8fd9\u4e48\u4e00\u4e2a\u95ee\u9898\uff0c\u8be6\u7ec6\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n<pre><code>root@elsenow-virmach:~# nginx -t\nnginx: [emerg] PEM_read_bio_X509_AUX(\"\/root\/elsenow-ecc.crt\") failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed\n<\/code><\/pre>\n<p><!--more--><br \/>\n\u4e00\u5f00\u59cb\u4ee5\u4e3a\u662f\u8bc1\u4e66\u914d\u7f6e\u6709\u95ee\u9898\uff0c\u8fd8\u7279\u610f\u68c0\u67e5\u4e86\u4e00\u904dSSL\u8bc1\u4e66\u7684key\u662f\u5426\u6b63\u786e\uff0c\u4ed4\u7ec6\u68c0\u67e5\u4e4b\u540e\u53d1\u73b0\uff0ckey\u5e76\u6ca1\u6709\u95ee\u9898\uff0c\u6700\u540e\u53d1\u73b0\u662f\u8bc1\u4e66\u94fe\u5408\u5e76\u7684\u65f6\u5019\u51fa\u73b0\u4e86\u95ee\u9898\u3002<br \/>\n\u56e0\u4e3a\u6211\u662f\u7528cat\u547d\u4ee4\u5c06\u4e24\u4e2acrt\u683c\u5f0f\u8bc1\u4e66\u5408\u5e76\u7684\uff0c\u5bfc\u81f4\u4e24\u4e2a\u6587\u4ef6\u5408\u5e76\u7684\u65f6\u5019\u56e0\u4e3a\u6ca1\u6709\u6362\u884c\u800c\u7b2c\u4e00\u4e2a\u6587\u4ef6\u7684\u7ed3\u5c3e\u90e8\u5206\u548c\u7b2c\u4e8c\u4e2a\u6587\u4ef6\u7684\u5f00\u5934\u90e8\u5206\u5408\u5e76\u5728\u4e86\u4e00\u8d77\uff0c\u4e5f\u5c31\u662f\u8fd9\u6837\uff1a<\/p>\n<pre><code>-----END CERTIFICATE----------BEGIN CERTIFICATE-----\n<\/code><\/pre>\n<p>\u89e3\u51b3\u65b9\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5c06\u8fd9\u4e24\u884c\u624b\u52a8\u62c6\u5206\u4e00\u4e0b\u5c31\u884c\uff0c\u4e5f\u5c31\u662f\u8fd9\u6837\uff1a<\/p>\n<pre><code>-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n<\/code><\/pre>\n<p>\u6ce8\u610f\u524d\u540e<strong>&#8211;<\/strong>\u7684\u6570\u91cf\u4fdd\u6301\u4e00\u81f4\u5c31\u884c\u3002<br \/>\n\u66f4\u6539\u597d\u4e4b\u540e\uff0c\u4fdd\u5b58\uff0c\u91cd\u65b0\u542f\u52a8Nginx\u5c31\u884c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u7ed9Nginx\u914d\u7f6e\u8bc1\u4e66\u7684\u65f6\u5019\uff0c\u9047\u5230\u4e86\u8fd9\u4e48\u4e00\u4e2a\u95ee\u9898\uff0c\u8be6\u7ec6\u62a5\u9519\u5982\u4e0b\uff1a root@elsenow-virmach &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/nginx-show-ssl-error0906d066pem-routinespem_read_biobad-end-line-error-resolve.html\"> <span class=\"screen-reader-text\">Nginx\u63d0\u793aSSL: error:0906D066:PEM routines:PEM_read_bio:bad end line\u9519\u8bef\u89e3\u51b3<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[183],"tags":[76,100],"class_list":["post-414","post","type-post","status-publish","format-standard","hentry","category-more","tag-nginx","tag-ssl"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=414"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/414\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}