{"id":101,"date":"2023-05-17T17:27:57","date_gmt":"2023-05-17T09:27:57","guid":{"rendered":"https:\/\/app.60day.cn\/appday\/?p=101"},"modified":"2023-05-17T17:27:57","modified_gmt":"2023-05-17T09:27:57","slug":"api%e6%80%8e%e4%b9%88%e7%94%b3%e8%af%b7ssl%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.60day.cn\/appday\/https\/101\/","title":{"rendered":"api\u600e\u4e48\u7533\u8bf7ssl\uff1f"},"content":{"rendered":"<p>SSL\uff08Secure Sockets Layer\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u5bc6\u548c\u4fdd\u62a4\u7f51\u7ad9\u901a\u4fe1\u7684\u534f\u8bae\u3002API\uff08Application Programming Interface\uff09\u662f\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u76f8\u4e92\u901a\u4fe1\u7684\u63a5\u53e3\u3002\u5728\u4e92\u8054\u7f51\u4e0a\uff0cAPI\u901a\u5e38\u4f7f\u7528HTTP\uff08Hypertext Transfer Protocol\uff09\u8fdb\u884c\u901a\u4fe1\u3002\u4e3a\u4e86\u4fdd\u62a4API\u901a\u4fe1\u7684\u5b89\u5168\u6027\uff0c\u6211\u4eec\u9700\u8981\u4e3aAPI\u7533\u8bf7SSL\u8bc1\u4e66\uff0c\u672c\u6587\u5c06\u4ecb\u7ecdAPI\u5982\u4f55\u7533\u8bf7SSL\u8bc1\u4e66\u7684\u539f\u7406\u548c\u8be6\u7ec6\u8fc7\u7a0b\u3002<\/p>\n<p>\u4e00\u3001SSL\u8bc1\u4e66\u7684\u539f\u7406<\/p>\n<p>SSL\u8bc1\u4e66\u662f\u7531\u6570\u5b57\u8bc1\u4e66\u8ba4\u8bc1\u673a\u6784\uff08CA\uff09\u9881\u53d1\u7684\u4e00\u79cd\u7535\u5b50\u8bc1\u4e66\uff0c\u7528\u4e8e\u8bc1\u660e\u7f51\u7ad9\u6216API\u7684\u8eab\u4efd\u548c\u5b89\u5168\u6027\u3002\u5f53\u7528\u6237\u8bbf\u95ee\u4e00\u4e2a\u7f51\u7ad9\u6216API\u65f6\uff0c\u6d4f\u89c8\u5668\u4f1a\u5411\u8be5\u7f51\u7ad9\u6216API\u8bf7\u6c42SSL\u8bc1\u4e66\u3002\u5982\u679c\u8bc1\u4e66\u662f\u6709\u6548\u7684\u4e14\u7531\u53ef\u4fe1\u7684CA\u9881\u53d1\uff0c\u6d4f\u89c8\u5668\u5c06\u5efa\u7acb\u4e00\u4e2a\u5b89\u5168\u7684HTTPS\u8fde\u63a5\uff0c\u52a0\u5bc6\u6570\u636e\u4f20\u8f93\uff0c\u4fdd\u62a4\u901a\u4fe1\u7684\u5b89\u5168\u6027\u3002<\/p>\n<p>SSL\u8bc1\u4e66\u7684\u6838\u5fc3\u662f\u516c\u94a5\u52a0\u5bc6\u6280\u672f\uff0c\u5b83\u4f7f\u7528\u975e\u5bf9\u79f0\u52a0\u5bc6\u7b97\u6cd5\uff0c\u5373\u4e00\u5bf9\u516c\u94a5\u548c\u79c1\u94a5\u3002\u516c\u94a5\u662f\u7528\u4e8e\u52a0\u5bc6\u6570\u636e\u7684\uff0c\u79c1\u94a5\u662f\u7528\u4e8e\u89e3\u5bc6\u6570\u636e\u7684\u3002\u5728SSL\u901a\u4fe1\u4e2d\uff0c\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u4e4b\u95f4<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/29\/17\/16698484991.jpg\" \/><\/figure>\n<\/p>\n<p>\u4ea4\u6362\u516c\u94a5\uff0c\u6d4f\u89c8\u5668\u4f7f\u7528\u516c\u94a5\u52a0\u5bc6\u6570\u636e\uff0c\u670d\u52a1\u5668\u4f7f\u7528\u79c1\u94a5\u89e3\u5bc6\u6570\u636e\uff0c\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027\u3002<\/p>\n<p>\u4e8c\u3001API\u7533\u8bf7SSL\u8bc1\u4e66\u7684\u8be6\u7ec6\u8fc7\u7a0b<\/p>\n<p>1. \u9009\u62e9\u8bc1\u4e66\u7c7b\u578b<\/p>\n<p>API\u7533\u8bf7SSL\u8bc1\u4e66\u524d\uff0c\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u8bc1\u4e66\u7c7b\u578b\u3002\u5e38\u89c1\u7684SSL\u8bc1\u4e66\u7c7b\u578b\u6709DV\uff08Domain Validated\uff09\u3001OV\uff08Organization Validated\uff09\u548cEV\uff08Extended Validation\uff09\u4e09\u79cd\u3002DV\u8bc1\u4e66\u662f\u6700\u5e38\u89c1\u7684\u8bc1\u4e66\u7c7b\u578b\uff0c\u53ea\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743\uff0c\u9002\u7528\u4e8e\u4e2a\u4eba\u7f51\u7ad9\u548c\u5c0f\u578b\u4f01\u4e1a\u3002OV\u8bc1\u4e66\u9a8c\u8bc1\u4f01\u4e1a\u8eab\u4efd\uff0c\u9002\u7528\u4e8e\u4e2d\u5c0f\u578b\u4f01\u4e1a\u548c\u7535\u5b50\u5546\u52a1\u7f51\u7ad9\u3002EV\u8bc1\u4e66\u662f\u6700\u9ad8\u7ea7\u522b\u7684\u8bc1\u4e66\uff0c\u9a8c\u8bc1\u4f01\u4e1a\u8eab\u4efd\u548c\u8fd0\u8425\u8d44\u8d28\uff0c\u9002\u7528\u4e8e\u5927\u578b\u4f01\u4e1a\u548c\u91d1\u878d\u673a\u6784\u7b49\u3002<\/p>\n<p>2. \u9009\u62e9\u8bc1\u4e66\u54c1\u724c<\/p>\n<p>\u9009\u62e9\u8bc1\u4e66\u7c7b\u578b\u540e\uff0c\u9700\u8981\u9009\u62e9\u53ef\u4fe1\u7684\u8bc1\u4e66\u54c1\u724c\u3002\u5e38\u89c1\u7684SSL\u8bc1\u4e66\u54c1\u724c\u6709Symantec\u3001Comodo\u3001GeoTrust\u3001Thawte\u7b49\u3002\u9009\u62e9\u65f6\u9700\u8981\u8003\u8651\u54c1\u724c\u7684\u53ef\u4fe1\u5ea6\u3001\u8bc1\u4e66\u4ef7\u683c\u548c\u670d\u52a1\u8d28\u91cf\u7b49\u56e0\u7d20\u3002<\/p>\n<p><a href=\"https:\/\/www.yimenssl.cn\/ssl-shenqing-1537.html\">\u5982\u4f55\u7533\u8bf7ssl\u6570\u5b57\u8bc1\u4e66<\/a>3. \u751f\u6210CSR\uff08Certificate Signing Request\uff09<\/p>\n<p>CSR\u662f\u7533\u8bf7SSL\u8bc1\u4e66\u7684\u5173\u952e\u6587\u4ef6\uff0c\u5305\u542b\u4e86\u7533\u8bf7\u8005\u7684\u516c\u94a5\u548c\u8bc1\u4e66\u4fe1\u606f\u3002\u5728\u7533\u8bf7SSL\u8bc1\u4e66\u524d\uff0c\u9700\u8981\u751f\u6210CSR\u6587\u4ef6\u3002\u751f\u6210CSR\u6587\u4ef6\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u53ef\u4ee5\u901a\u8fc7Web\u670d\u52a1\u5668\u8f6f\u4ef6\u3001OpenSSL\u5de5\u5177\u6216\u5728\u7ebfCSR\u751f\u6210\u5de5\u5177\u7b49\u65b9\u5f0f\u751f\u6210\u3002<\/p>\n<p>4. \u63d0\u4ea4\u7533\u8bf7<\/p>\n<p>\u751f\u6210CSR\u6587\u4ef6\u540e\uff0c\u9700\u8981\u63d0\u4ea4\u8bc1\u4e66\u7533\u8bf7\u3002\u5728\u63d0\u4ea4\u7533\u8bf7\u524d\uff0c\u9700\u8981\u586b\u5199\u4e00\u4e9b\u5fc5\u8981\u7684\u4fe1\u606f\uff0c\u5982\u8bc1\u4e66\u7c7b\u578b\u3001\u57df\u540d\u3001\u4f01\u4e1a\u4fe1\u606f\u7b49\u3002\u63d0\u4ea4\u7533\u8bf7\u540e\uff0c\u9700\u8981\u7b49\u5f85CA\u5ba1\u6838\u548c\u9881\u53d1\u8bc1\u4e66\u3002\u5ba1\u6838\u65f6\u95f4\u6839\u636e\u8bc1\u4e66\u7c7b\u578b\u548c\u54c1\u724c\u4e0d\u540c\u800c\u4e0d\u540c\uff0c\u4e00\u822c\u9700\u8981\u51e0\u5929\u5230\u51e0\u5468\u4e0d\u7b49\u3002<\/p>\n<p>5. \u5b89\u88c5\u8bc1\u4e66<\/p>\n<p>\u8bc1\u4e66\u5ba1\u6838\u901a\u8fc7\u540e\uff0cCA\u4f1a\u5411\u7533\u8bf7\u8005\u53d1\u9001\u8bc1\u4e66\u6587\u4ef6\u3002\u5b89\u88c5\u8bc1\u4e66\u9700\u8981\u5c06\u8bc1\u4e66\u6587\u4ef6\u5bfc\u5165Web\u670d\u52a1\u5668\uff0c\u5e76\u914d\u7f6eWeb\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u5177\u4f53\u5b89\u88c5\u65b9\u6cd5\u56e0Web\u670d\u52a1\u5668\u8f6f\u4ef6\u4e0d\u540c\u800c\u4e0d\u540c\uff0c\u53ef\u4ee5\u53c2\u8003\u76f8\u5e94\u7684\u5b89\u88c5\u6307\u5357\u3002<\/p>\n<p>6. \u6d4b\u8bd5\u8bc1\u4e66<\/p>\n<p>\u5b89\u88c5\u8bc1\u4e66\u540e\uff0c\u9700\u8981\u6d4b\u8bd5\u8bc1\u4e66\u662f\u5426\u751f\u6548\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95eeAPI\u7684HTTPS\u5730\u5740\uff0c\u9a8c\u8bc1\u8bc1\u4e66\u662f\u5426\u6709\u6548\u3002\u5982\u679c\u8bc1\u4e66\u6709\u6548\uff0c\u6d4f\u89c8\u5668\u5c06\u663e\u793a\u7eff\u8272\u7684\u9501\u6807\u5fd7\u548cHTTPS\u524d\u7f00\uff0c\u8868\u793aAPI\u7684\u901a\u4fe1\u5df2\u7ecf\u52a0\u5bc6\u548c\u4fdd\u62a4\u3002<\/p>\n<p>\u4e09\u3001\u603b\u7ed3<\/p>\n<p>API\u7533\u8bf7SSL\u8bc1\u4e66\u662f\u4fdd\u62a4API\u901a\u4fe1\u5b89\u5168\u7684\u91cd\u8981\u63aa\u65bd\u3002\u7533\u8bf7SSL\u8bc1\u4e66\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u8bc1\u4e66\u7c7b\u578b\u548c\u54c1\u724c\uff0c\u751f\u6210CSR\u6587\u4ef6\uff0c\u63d0\u4ea4\u7533\u8bf7\uff0c\u5b89\u88c5\u8bc1\u4e66\u548c\u6d4b\u8bd5\u8bc1\u4e66\u7b49\u6b65\u9aa4\u3002\u7533\u8bf7SSL\u8bc1\u4e66\u9700\u8981\u4e00\u5b9a\u7684\u65f6\u95f4\u548c\u8d39\u7528\uff0c\u4f46\u53ef\u4ee5\u6709\u6548\u4fdd\u62a4API\u901a\u4fe1\u7684\u5b89\u5168\u6027\uff0c\u63d0\u9ad8\u7528\u6237\u4fe1\u4efb\u5ea6\u548c\u6570\u636e\u4fdd\u62a4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSL\uff08Secure Sockets Layer\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u5bc6\u548c\u4fdd\u62a4\u7f51\u7ad9\u901a\u4fe1\u7684\u534f\u8bae\u3002API\uff08Application Programming Interface\uff09\u662f\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u76f8\u4e92\u901a\u4fe1\u7684\u63a5\u53e3\u3002\u5728<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[239,241,242,16,240],"topic":[],"class_list":{"0":"post-101","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-https","7":"tag-https","9":"tag-242","10":"tag-16","11":"tag-240"},"_links":{"self":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":0,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/tags?post=101"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/topic?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}