{"id":1327,"date":"2017-06-07T11:38:57","date_gmt":"2017-06-07T03:38:57","guid":{"rendered":"https:\/\/www.webteach.tw\/?p=1327"},"modified":"2017-06-07T11:38:57","modified_gmt":"2017-06-07T03:38:57","slug":"linux-ssl-%e6%86%91%e8%ad%89-%e7%ba%8c%e7%b4%84-%e8%a8%ad%e5%ae%9a-godaddy","status":"publish","type":"post","link":"https:\/\/www.webteach.tw\/?p=1327","title":{"rendered":"[ LINUX ] \u2013 SSL \u6191\u8b49 \u7e8c\u7d04 \u8a2d\u5b9a (GoDaddy)"},"content":{"rendered":"<p>\t\t\t\t\u6191\u8b49\u904e\u671f \u7e8c\u7d04\u5f8c\u8981\u91cd\u65b0\u9a57\u8b49\u4f60\u7684\u7db2\u57df\u6240\u6709\u6b0a<br \/>\n\u53c3\u8003\u4ee5\u4e0b\u7db2\u5740\u6559\u5b78\uff1a<br \/>\n<a href=\"https:\/\/tw.godaddy.com\/help\/verify-domain-ownership-html-or-dns-7452\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/tw.godaddy.com\/help\/verify-domain-ownership-html-or-dns-7452<\/a><br \/>\n\u9ede\u6559\u5b78\u4e2d\u7684<\/p>\n<p class=\"display\">HTML Page<\/p>\n<p class=\"display\">1.\u5728\u672c\u6a5f\u7aef \u65b0\u589e godaddy.html \u6a94\u6848\u5f8c\u4e0a\u50b3\u5230\u4f60\u7db2\u7ad9\u7684\u6839\u76ee\u9304 \u4ee5\u6211\u7684\u70ba\u4f8b(\/var\/www\/html\/) \u4e2d<\/p>\n<p class=\"display\">2.\u5728ssl \u7ba1\u7406\u4e2d \u6709\u4e00\u7d44 \u552f\u4e00id \u628a\u9019\u500bid \u8907\u88fd\u8cbc\u4e0a\u5230 godaddy.html\u6587\u4ef6\u4e2d<\/p>\n<p class=\"display\">3.\u5728\u7db2\u7ad9\u6839\u76ee\u9304\u4e2d \u5efa\u7acb\u8cc7\u6599\u593e \/.well-known\/pki-validation\/<\/p>\n<p class=\"display\">4.\u5c07 godaddy.html \u79fb\u5230 pki-validation\/ \u8cc7\u6599\u593e\u4e2d<\/p>\n<p class=\"display\">5.\u5728\u7db2\u5740\u5217\u4e0a\u8cbc\u4e0a http:\/\/\u4f60\u7684\u7db2\u5740\/.well-known\/pki-validation\/godaddy.html \u5373\u5b8c\u6210\u7db2\u57df\u6240\u6709\u6b0a\u8a8d\u8b49<\/p>\n<p class=\"display\">\u4ee5\u4e0a\u8a2d\u5b9a\u97005~10\u5206\u9418\u5f8c\u751f\u6548\uff0c\u751f\u6548\u5f8c\u518d\u57f7\u884c\u4e0b\u9762\u6d41\u7a0b<\/p>\n<p class=\"display\">\n<p>\u5728godaddy\u5f8c\u53f0 \u6309\u4e0b\u8f09\u9215 \u9078\u64c7 \u7db2\u9801\u4f3a\u670d\u5668\u7684\u7248\u672c apache<br \/>\n\u4e0b\u8f09\u5f8c\u6703\u6709\u5169\u500b\u6a94\u6848<br \/>\n\u4e82\u6578.crt \u4f3a\u670d\u5668ssl\u6191\u8b49<br \/>\ngd_bundlexxx.crt \u4e2d\u7e7c\u6191\u8b49<br \/>\n\u5c07\u9019\u5169\u500b\u6a94\u6848\u50b3\u5230\u4f60\u7684\u4e3b\u6a5f\u4e0a\u9762 \u5118\u91cf\u4e0d\u8981\u653e\u5728www\u516c\u958b\u8cc7\u6599\u593e\u4e2d<br \/>\n\/\/\u6211\u662f\u5148\u50b3\u5230\/var\/www\/html\u4e2d \u518d\u79fb\u5230\u975e\u516c\u958b\u8cc7\u6599\u593e<br \/>\n\u6307\u4ee4 vi \/etc\/apache2\/sites-available\/default-ssl.conf<br \/>\n\/\/\u5b89\u88dd\u6191\u8b49<br \/>\nServerName webteach.tw<br \/>\nServerAlias www.webteach.tw<br \/>\nDocumentRoot \/var\/www\/html<br \/>\nSSLCertificateFile \/\u6191\u8b49\u8def\u5f91\/\u4e82\u6578.crt \u4f3a\u670d\u5668\u6191\u8b49<br \/>\nSSLCertificateKeyFile \/\u6191\u8b49\u8def\u5f91\/xxx.key \u4f60\u7684\u6191\u8b49\u79c1\u9470<br \/>\nSSLCACertificateFile \/\u6191\u8b49\u8def\u5f91\/gd_bundlexxx.crt \u4e2d\u7e7c\u6191\u8b49<br \/>\n(\u9019\u500b\u53c3\u6578 \u9810\u8a2d\u662f\u8a3b\u89e3\u6389\u7684 \u8acb\u62ff\u6389\u524d\u65b9 #)<br \/>\n\u7de8\u8f2f\u597d\u5f8c\u5b58\u6a94<br \/>\n\u8cbc\u4e00\u4e0b\u6703\u7528\u5230\u7684linux \u6307\u4ee4\uff1a<br \/>\nrm gd_bundle-g2-g1.crt<br \/>\n\/\/\u79fb\u9664\u7e8c\u7d04\u524d\u7684\u00a0gd_bundlexxx.crt \u4e2d\u7e7c\u6191\u8b49<br \/>\nrm 98xxx.crt<br \/>\n\/\/\u79fb\u9664\u7e8c\u7d04\u524d\u7684 \u4e82\u6578.crt \u4f3a\u670d\u5668ssl\u6191\u8b49<br \/>\nmv \/var\/www\/html\/83xxx.crt \/\u6191\u8b49\u8def\u5f91\/\u4e82\u6578.crt \u4f3a\u670d\u5668ssl\u6191\u8b49<br \/>\n\/\/\u5c07\u7e8c\u7d04\u5f8c\u7684\u4f3a\u670d\u5668ssl\u6191\u8b49 \u642c\u5230\u975e\u516c\u958b\u8cc7\u6599\u593e\u4e2d<br \/>\nmv \/var\/www\/html\/gd_bundlexxx.crt \/\u6191\u8b49\u8def\u5f91\/gd_bundlexxx.crt \u4e2d\u7e7c\u6191\u8b49<br \/>\n\/\/\u5c07\u7e8c\u7d04\u5f8c\u7684\u4e2d\u7e7c\u6191\u8b49 \u642c\u5230\u975e\u516c\u958b\u8cc7\u6599\u593e\u4e2d<br \/>\n\u6700\u5f8c\u57f7\u884c service apache2 restart<br \/>\n\u5373\u5b8c\u6210\u6191\u8b49\u66f4\u65b0\u7684\u52d5\u4f5c\u3002\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6191\u8b49\u904e\u671f \u7e8c\u7d04\u5f8c\u8981\u91cd\u65b0\u9a57\u8b49\u4f60\u7684\u7db2\u57df\u6240\u6709\u6b0a \u53c3\u8003\u4ee5\u4e0b&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,32],"tags":[],"class_list":["post-1327","post","type-post","status-publish","format-standard","hentry","category-apache","category-linux"],"_links":{"self":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/1327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1327"}],"version-history":[{"count":0,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/1327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}