{"id":159,"date":"2018-07-29T08:37:12","date_gmt":"2018-07-29T00:37:12","guid":{"rendered":"https:\/\/pfsense.freeddns.org\/wp\/?p=159"},"modified":"2020-08-24T22:15:08","modified_gmt":"2020-08-24T14:15:08","slug":"pfsense-book%e4%b9%8b%e8%af%81%e4%b9%a6%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=159","title":{"rendered":"pfSense book\u4e4b\u8bc1\u4e66\u7ba1\u7406"},"content":{"rendered":"<h1 style=\"text-align: justify;\">\u8bc1\u4e66\u7ba1\u7406<\/h1>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u8bc1\u4e66\u6743\u9650\u7ba1\u7406<\/li>\n<li>\u8bc1\u4e66\u7ba1\u7406<\/li>\n<li>\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">X.509\u516c\u94a5\u57fa\u7840\u77e5\u8bc6\u4ecb\u7ecd<\/h2>\n<p style=\"text-align: justify;\">VPN\u7684\u5176\u4e2d\u4e00\u4e2a\u8eab\u4efd\u9a8c\u8bc1\u9009\u9879\u662f\u4f7f\u7528X.509\u5bc6\u94a5\uff0c\u5173\u4e8eX.509\u548c\u516c\u5171\u5bc6\u94a5\u57fa\u7840\u8bbe\u65bd\uff08PKI\uff09\u7684\u6df1\u5165\u8ba8\u8bba\u8d85\u51fa\u4e86\u672c\u4e66\u7684\u8303\u56f4\u3002\u672c\u7ae0\u63d0\u4f9b\u4e86\u5728pfSense\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u8bc1\u4e66\u6240\u5fc5\u9700\u7684\u57fa\u672c\u77e5\u8bc6\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528PKI\uff0c\u9996\u5148\u521b\u5efa\u4e00\u4e2a\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08CA\uff09\u3002\u6b64CA\u968f\u540e\u5728PKI\u4e2d\u7b7e\u7f72\u6240\u6709\u5355\u4e2a\u8bc1\u4e66\u3002 VPN\u7684\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4f7f\u7528CA\u7684\u8bc1\u4e66\u6765\u9a8c\u8bc1\u6240\u4f7f\u7528\u7684\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u8bc1\u4e66\u7684\u771f\u5b9e\u6027\u3002 CA\u7684\u8bc1\u4e66\u53ef\u7528\u4e8e\u9a8c\u8bc1\u5bf9\u8bc1\u4e66\u7684\u7b7e\u540d\uff0c\u4f46\u4e0d\u80fd\u7b7e\u7f72\u8bc1\u4e66\u3002\u7b7e\u7f72\u8bc1\u4e66\u9700\u8981CA\u7684\u79c1\u94a5\u3002 CA\u79c1\u94a5\u7684\u79d8\u5bc6\u662f\u786e\u4fddPKI\u5b89\u5168\u7684\u4fdd\u8bc1\u3002\u4efb\u4f55\u6709\u6743\u8bbf\u95eeCA\u79c1\u94a5\u7684\u4eba\u90fd\u53ef\u4ee5\u751f\u6210\u8981\u5728PKI\u4e0a\u4f7f\u7528\u7684\u8bc1\u4e66\uff0c\u56e0\u6b64\u5fc5\u987b\u4fdd\u8bc1\u5176\u5b89\u5168\u3002\u6b64\u5bc6\u94a5\u7edd\u4e0d\u4f1a\u5206\u53d1\u7ed9\u5ba2\u6237\u7aef\u6216\u670d\u52a1\u5668\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u5207\u52ff\u5c06\u6587\u4ef6\u590d\u5236\u5230\u591a\u4e2a\u5ba2\u6237\u7aef\uff0c\u56e0\u4e3a\u8fd9\u53ef\u80fd\u4f1a\u5371\u53caPKI\u7684\u5b89\u5168\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u8bc1\u4e66\u5df2\u88ab\u7ed9\u5b9a\u7684CA\u4fe1\u4efb\uff0c\u5219\u8be5\u8bc1\u4e66\u88ab\u8ba4\u4e3a\u662f\u6709\u6548\u7684\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u8fd9\u610f\u5473\u7740\u4ece\u7279\u5b9aCA\u5236\u4f5c\u7684\u8bc1\u4e66\u5bf9\u4e8e\u4f7f\u7528\u8be5CA\u7684\u4efb\u4f55VPN\u90fd\u5c06\u88ab\u89c6\u4e3a\u6709\u6548\u3002\u56e0\u6b64\uff0c\u6700\u4f73\u505a\u6cd5\u662f\u4e3a\u6bcf\u4e2a\u5177\u6709\u4e0d\u540c\u5b89\u5168\u7ea7\u522b\u7684VPN\u521b\u5efa\u4e00\u4e2a\u552f\u4e00\u7684CA\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6709\u4e24\u4e2a\u5177\u6709\u76f8\u540c\u5b89\u5168\u8bbf\u95ee\u6743\u9650\u7684\u79fb\u52a8\u7aef\u63a5\u5165VPN\uff0c\u90a3\u4e48\u5bf9\u8fd9\u4e9bVPN\u4f7f\u7528\u76f8\u540c\u7684CA\u5c31\u53ef\u4ee5\u4e86\u3002\u4f46\u662f\uff0c\u5982\u679c\u4e00\u4e2aVPN\u7528\u4e8e\u7528\u6237\uff0c\u53e6\u4e00\u4e2aVPN\u7528\u4e8e\u8fdc\u7a0b\u7ba1\u7406\uff0c\u6bcf\u4e2aVPN\u90fd\u6709\u4e0d\u540c\u7684\u9650\u5236\uff0c\u5219\u5e94\u4f7f\u7528\u4e0d\u540c\u7684CA\u3002<\/p>\n<p style=\"text-align: justify;\">\u8bc1\u4e66\u540a\u9500\u5217\u8868\uff08CRL\uff09\u662f\u5df2\u88ab\u76d7\u7528\u6216\u9700\u8981\u5931\u6548\u7684\u8bc1\u4e66\u5217\u8868\u3002\u53ea\u8981\u4f7f\u7528CA\u7684\u5e94\u7528\u7a0b\u5e8f\u4e5f\u4f7f\u7528CRL\uff0c\u540a\u9500\u8bc1\u4e66\u5c06\u5bfc\u81f4\u5b83\u88ab\u8ba4\u4e3a\u4e0d\u53ef\u4fe1\u3002\u4f7f\u7528\u5176\u79c1\u94a5\u751f\u6210CRL\u5e76\u5bf9CA\u8fdb\u884c\u7b7e\u540d\uff0c\u56e0\u6b64\u4e3a\u4e86\u5728GUI\u4e2d\u4e3aCRL\u521b\u5efa\u6216\u6dfb\u52a0\u8bc1\u4e66\uff0cCA\u7684\u79c1\u94a5\u5fc5\u987b\u5b58\u5728\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u8bc1\u4e66\u6743\u9650\u7ba1\u7406<\/h1>\n<p style=\"text-align: justify;\">\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08CAs\uff09\u901a\u8fc7\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0cCAs\u9009\u9879\u5361\u8fdb\u884c\u7ba1\u7406\u3002\u4ece\u8fd9\u4e2a\u9875\u9762\u53ef\u4ee5\u6dfb\u52a0\u3001\u7f16\u8f91\u3001\u5bfc\u51fa\u6216\u5220\u9664CA\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8bc1\u4e66\u6388\u6743<\/h2>\n<p style=\"text-align: justify;\">\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684CA\uff0c\u8bf7\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c<\/p>\n<ul>\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0cCAs\u9009\u9879\u5361<\/li>\n<li>\u70b9\u51fb\u6dfb\u52a0\u521b\u5efa\u4e00\u4e2a\u65b0\u7684CA\u3002<\/li>\n<li>\u4e3aCA\u8f93\u5165\u4e00\u4e2a\u63cf\u8ff0\u6027\u540d\u79f0\u3002 \u8fd9\u5728\u6574\u4e2aGUI\u4e2d\u7528\u4f5c\u6b64CA\u7684\u6807\u8bc6\u3002<\/li>\n<li>\u9009\u62e9\u6700\u9002\u5408\u5982\u4f55\u751f\u6210CA\u7684\u65b9\u6cd5\u3002\u00a0\u5305\u62ec\uff1a<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/li>\n<li>\u5bfc\u5165\u73b0\u6709\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/li>\n<li>\u521b\u5efa\u4e2d\u95f4\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8ba4\u8bc1\u4e2d\u5fc3<\/h3>\n<p style=\"text-align: justify;\">\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u9009\u62e9\u5bc6\u94a5\u957f\u5ea6\u4ee5\u9009\u62e9CA\u5728\u52a0\u5bc6\u65b9\u9762\u7684\u201c\u5f3a\u58ee\u201d\u7a0b\u5ea6\u3002 \u5bc6\u94a5\u8d8a\u957f\uff0c\u5b83\u5c31\u8d8a\u5b89\u5168\u3002 \u4f46\u662f\uff0c\u8f83\u957f\u7684\u5bc6\u94a5\u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684CPU\u65f6\u95f4\u6765\u5904\u7406\uff0c\u56e0\u6b64\u4f7f\u7528\u6700\u5927\u503c\u5e76\u4e0d\u603b\u662f\u660e\u667a\u7684\u3002 \u9ed8\u8ba4\u503c2048\u80fd\u8f83\u597d\u7684\u5e73\u8861\u5b89\u5168\u548c\u6027\u80fd\u3002<\/li>\n<li>\u4ece\u63d0\u4f9b\u7684\u5217\u8868\u4e2d\u9009\u62e9\u6458\u8981\u7b97\u6cd5\u3002 \u76ee\u524d\u7684\u6700\u4f73\u505a\u6cd5\u662f\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u6bd4SHA1\u66f4\u5f3a\u5927\u7684\u7b97\u6cd5\u3002 SHA256\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u4e00\u4e9b\u8f83\u8001\u6216\u8f83\u4e0d\u590d\u6742\u7684\u8bbe\u5907\uff08\u4f8b\u5982\u652f\u6301VPN\u7684VoIP\u624b\u673a\uff09\u53ef\u80fd\u4ec5\u652f\u6301SHA1\u7528\u4e8e\u6458\u8981\u7b97\u6cd5\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u8f93\u5165\u6709\u6548\u671f\u7684\u503c\u4ee5\u6307\u5b9aCA\u5c06\u6709\u6548\u7684\u5929\u6570\u3002 \u6301\u7eed\u65f6\u95f4\u53d6\u51b3\u4e8e\u4e2a\u4eba\u504f\u597d\u548c\u7f51\u7ad9\u653f\u7b56\u3002 \u9891\u7e41\u66f4\u6362CA\u66f4\u5b89\u5168\uff0c\u4f46\u8fd9\u4e5f\u662f\u4e00\u4e2a\u7ba1\u7406\u96be\u9898\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u5728CA\u8fc7\u671f\u65f6\u91cd\u65b0\u7b7e\u53d1\u65b0\u8bc1\u4e66\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4f7f\u75283650\u5929\uff0c\u8fd9\u5927\u7ea6\u662f10\u5e74\u3002<\/li>\n<li>\u4e3aCA\u4e2d\u7684\u4e2a\u6027\u5316\u53c2\u6570\u8f93\u5165\u4e13\u6709\u540d\u79f0\u90e8\u5206\u7684\u503c\u3002 \u8fd9\u4e9b\u901a\u5e38\u6839\u636e\u7ec4\u7ec7\u7684\u4fe1\u606f\u586b\u5199\uff0c\u6216\u8005\u5728\u4e2a\u4eba\u4fe1\u606f\u7684\u60c5\u51b5\u4e0b\u586b\u5199\u3002 \u8fd9\u4e9b\u4fe1\u606f\u5927\u591a\u662f\u8868\u9762\u5316\u7684\uff0c\u7528\u4e8e\u9a8c\u8bc1CA\u7684\u51c6\u786e\u6027\uff0c\u5e76\u5c06\u4e00\u4e2aCA\u4e0e\u53e6\u4e00\u4e2a\u533a\u5206\u5f00\u6765\u3002 \u4e0d\u5f97\u4f7f\u7528\u6807\u70b9\u7b26\u53f7\u548c\u7279\u6b8a\u5b57\u7b26\u3002\n<ul class=\" list-paddingleft-2\">\n<li>\u4ece\u5217\u8868\u4e2d\u9009\u62e9\u56fd\u5bb6\u4ee3\u7801\u3002 \u8fd9\u662fISO\u8ba4\u53ef\u7684\u56fd\u5bb6\u4ee3\u7801\uff0c\u800c\u4e0d\u662f\u4e3b\u673a\u540d\u9876\u7ea7\u57df\u540d\u3002<\/li>\n<li>\u8f93\u5165\u5b8c\u5168\u62fc\u51fa\u7684\u5dde\u6216\u7701\uff0c\u800c\u4e0d\u662f\u7f29\u5199\u3002<\/li>\n<li>\u8f93\u5165\u57ce\u5e02\u3002<\/li>\n<li>\u8f93\u5165\u7ec4\u7ec7\u540d\u79f0\uff0c\u901a\u5e38\u662f\u516c\u53f8\u540d\u79f0\u3002<\/li>\n<li>\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/li>\n<li>\u8f93\u5165\u516c\u7528\u540d\u79f0\uff08CN\uff09\u3002 \u8be5\u5b57\u6bb5\u662f\u6807\u8bc6CA\u7684\u5185\u90e8\u540d\u79f0\u3002 \u4e0e\u8bc1\u4e66\u4e0d\u540c\uff0cCA\u7684CN\u4e0d\u5fc5\u662f\u4e3b\u673a\u540d\u6216\u4efb\u4f55\u7279\u5b9a\u7684\u3002 \u4f8b\u5982\uff0c\u5b83\u53ef\u4ee5\u88ab\u79f0\u4e3aVPNCA\u6216MyCA\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p class=\"first\">\u5355\u51fb<strong>\u4fdd\u5b58<\/strong><\/p>\n<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u5c3d\u7ba1\u5b83\u5728\u6280\u672f\u4e0a\u6709\u6548\uff0c\u8bf7\u907f\u514d\u5728CN\u4e2d\u4f7f\u7528\u7a7a\u683c\u3002<\/p>\n<p style=\"text-align: justify;\">\u4fdd\u5b58\u540e\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u4f8b\u5982\u65e0\u6548\u5b57\u7b26\u6216\u5176\u4ed6\u8f93\u5165\u95ee\u9898\uff0c\u521a\u4f1a\u6709\u76f8\u5e94\u7684\u63cf\u8ff0\u8bf4\u660e\u3002\u7ea0\u6b63\u9519\u8bef\u540e\uff0c\u5c1d\u8bd5\u518d\u6b21\u4fdd\u5b58\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u5bfc\u5165\u73b0\u6709\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679c\u9700\u8981\u5bfc\u5165\u6765\u81ea\u5916\u90e8\u7684\u5df2\u6709CA\uff0c\u53ef\u4ee5\u901a\u8fc7\u9009\u62e9\u5bfc\u5165\u73b0\u6709\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u3002 \u8fd9\u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff1a\u4e00\u79cd\u662f\u4f7f\u7528\u5176\u4ed6\u7cfb\u7edf\u5236\u4f5c\u7684CA\uff0c\u53e6\u4e00\u79cd\u662f\u7531\u5176\u4ed6\u4eba\u5236\u4f5c\u7684\u53ef\u4ee5\u4fe1\u4efb\u7684CA\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\n<p class=\"first\">\u8f93\u5165CA\u7684\u8bc1\u4e66\u6570\u636e\u3002 \u8981\u4fe1\u4efb\u53e6\u4e00\u4e2a\u6765\u6e90\u7684CA\uff0c\u53ea\u9700\u8981CA\u7684\u8bc1\u4e66\u6570\u636e\u3002 \u5b83\u901a\u5e38\u5305\u542b\u5728\u4ee5.crt\u6216.pem\u7ed3\u5c3e\u7684\u6587\u4ef6\u4e2d\u3002 \u8fd9\u5c06\u662f\u7eaf\u6587\u672c\uff0c\u5e76\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">A<\/span> <span class=\"n\">bunch<\/span> <span class=\"n\">of<\/span> <span class=\"n\">random<\/span><span class=\"o\">-<\/span><span class=\"n\">looking<\/span> <span class=\"n\">base64<\/span><span class=\"o\">-<\/span><span class=\"n\">encoded<\/span> <span class=\"n\">data<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span><\/pre>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5982\u679c\u5bfc\u5165\u81ea\u5b9a\u4e49\u5916\u90e8CA\u6216\u80fd\u591f\u751f\u6210\u5176\u81ea\u5df1\u7684\u8bc1\u4e66\u548c\u8bc1\u4e66\u64a4\u9500\u5217\u8868\u7684CA\uff0c\u8bf7\u8f93\u5165\u8bc1\u4e66\u79c1\u94a5\u3002 \u8fd9\u901a\u5e38\u5728\u4ee5.key\u7ed3\u5c3e\u7684\u6587\u4ef6\u4e2d\u3002 \u8fd9\u662f\u5982\u4e0b\u6240\u793a\u7684\u4e00\u4e2a\u7eaf\u6587\u672c\u6570\u636e\uff1a<\/li>\n<\/ul>\n<pre><span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">RSA<\/span> <span class=\"n\">PRIVATE<\/span> <span class=\"n\">KEY<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">A<\/span> <span class=\"n\">bunch<\/span> <span class=\"n\">of<\/span> <span class=\"n\">random<\/span><span class=\"o\">-<\/span><span class=\"n\">looking<\/span> <span class=\"n\">base64<\/span><span class=\"o\">-<\/span><span class=\"n\">encoded<\/span> <span class=\"n\">data<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">RSA<\/span> <span class=\"n\">PRIVATE<\/span> <span class=\"n\">KEY<\/span><span class=\"o\">-----<\/span><\/pre>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\n<p class=\"first\">\u5982\u679c\u8f93\u5165\u4e86\u79c1\u94a5\uff0c\u8bf7\u8f93\u5165\u4e0b\u4e00\u4e2a\u8bc1\u4e66\u7684\u5e8f\u5217\u53f7\u3002 \u8fd9\u5c06\u81f3\u5173\u91cd\u8981\u7684\u3002 CA\u5c06\u4f9d\u6b21\u521b\u5efa\u5177\u6709\u552f\u4e00\u5e8f\u5217\u53f7\u7684\u8bc1\u4e66\u3002 \u6b64\u503c\u63a7\u5236\u4ece\u6b64CA\u751f\u6210\u7684\u4e0b\u4e00\u4e2a\u8bc1\u4e66\u7684\u5e8f\u5217\u53f7\u3002 \u6bcf\u4e2a\u8bc1\u4e66\u90fd\u5fc5\u987b\u5177\u6709\u552f\u4e00\u7684\u5e8f\u5217\u53f7\uff0c\u5426\u5219\u5728\u8bc1\u4e66\u64a4\u9500\u540e\u4f1a\u51fa\u73b0\u95ee\u9898\u3002 \u5982\u679c\u4e0b\u4e00\u4e2a\u5e8f\u5217\u53f7\u672a\u77e5\uff0c\u8bf7\u5c1d\u8bd5\u4f30\u7b97\u5df2\u4eceCA\u521b\u5efa\u4e86\u591a\u5c11\u4e2a\u8bc1\u4e66\uff0c\u7136\u540e\u5c06\u8be5\u6570\u5b57\u8bbe\u7f6e\u5f97\u8db3\u591f\u9ad8\uff0c\u4ee5\u907f\u514d\u53d1\u751f\u51b2\u7a81\u3002<\/p>\n<\/li>\n<li>\n<p class=\"first\">\u5355\u51fb<strong>\u4fdd\u5b58<\/strong><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u4fdd\u5b58\u540e\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u4f8b\u5982\u65e0\u6548\u5b57\u7b26\u6216\u5176\u4ed6\u8f93\u5165\u95ee\u9898\uff0c\u521a\u4f1a\u6709\u76f8\u5e94\u7684\u63cf\u8ff0\u8bf4\u660e\u3002\u7ea0\u6b63\u9519\u8bef\u540e\uff0c\u5c1d\u8bd5\u518d\u6b21\u4fdd\u5b58\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u5bfc\u5165\u94fe\u63a5\u6216\u5d4c\u5957\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h4>\n<p style=\"text-align: justify;\">\u5982\u679cCA\u5df2\u7531\u4e2d\u95f4\u4eba\u7b7e\u540d\u800c\u4e0d\u662f\u76f4\u63a5\u7531\u6839CA\u7b7e\u540d\uff0c\u5219\u53ef\u80fd\u9700\u8981\u5c06\u6839\u548c\u4e2d\u95f4CA\u4e00\u8d77\u5bfc\u5165\u5230\u4e00\u4e2a\u6761\u76ee\u4e2d\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">Subordinate<\/span><span class=\"o\">\/<\/span><span class=\"n\">Intermediate<\/span> <span class=\"n\">CA<\/span> <span class=\"n\">certificate<\/span> <span class=\"n\">text<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">Root<\/span> <span class=\"n\">CA<\/span> <span class=\"n\">certificate<\/span> <span class=\"n\">text<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span><\/pre>\n<h3 style=\"text-align: justify;\">\u521b\u5efa\u4e2d\u95f4\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h3>\n<p style=\"text-align: justify;\">\u4e2d\u95f4CA\u5c06\u521b\u5efa\u4e00\u4e2a\u80fd\u591f\u751f\u6210\u8bc1\u4e66\u7684\u65b0CA\uff0c\u4f46\u4f9d\u8d56\u4e8e\u9ad8\u4e8e\u5176\u4e0a\u7684\u53e6\u4e00\u4e2aCA\u3002\u8981\u521b\u5efa\u4e00\u4e2a\uff0c\u8bf7\u4ece\u65b9\u6cd5\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u521b\u5efa\u4e00\u4e2a\u4e2d\u95f4\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u66f4\u9ad8\u7ea7\u7684CA\u5fc5\u987b\u5df2\u7ecf\u5b58\u5728\u4e8epfSense\uff08\u5df2\u521b\u5efa\u6216\u5df2\u5bfc\u5165\uff09<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u4f7f\u7528\u7b7e\u540d\u8bc1\u4e66\u6388\u6743\u673a\u6784\u4e0b\u62c9\u5217\u8868\u9009\u62e9\u8f83\u9ad8\u7ea7\u522b\u7684CA\u6765\u7b7e\u7f72\u6b64CA\u3002\u53ea\u6709\u5b58\u5728\u79c1\u94a5\u7684CA\u624d\u4f1a\u663e\u793a\uff0c\u56e0\u4e3a\u8fd9\u662f\u6b63\u786e\u7b7e\u7f72\u6b64\u65b0CA\u6240\u5fc5\u9700\u7684\u3002<\/li>\n<li>\u586b\u5199\u4e0e\u521b\u5efa\u5185\u90e8\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u76f8\u540c\u7684\u5176\u4f59\u53c2\u6570\u3002<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u7f16\u8f91\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h2>\n<p style=\"text-align: justify;\">\u6dfb\u52a0CA\u540e\uff0c\u53ef\u4ee5\u4ece<strong>\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406<\/strong>\uff0cCAs\u9009\u9879\u5361\u4e2d\u627e\u5230\u7684CA\u5217\u8868\u8fdb\u884c\u7f16\u8f91\u3002\u8981\u7f16\u8f91\u4e00\u4e2aCA\uff0c \u5728\u884c\u7684\u672b\u5c3e\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u56fe\u6807\u3002\u51fa\u73b0\u7684\u9875\u9762\u5141\u8bb8\u50cf\u5bfc\u5165CA\u4e00\u6837\u7f16\u8f91\u5b57\u6bb5\u3002<\/p>\n<p style=\"text-align: justify;\">\u6709\u5173\u6b64\u9875\u9762\u4e0a\u5b57\u6bb5\u7684\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u5bfc\u5165\u73b0\u6709\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u3002 \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6b64\u9875\u9762\u662f\u5728\u9700\u8981\u65f6\u66f4\u6b63CA\u7684\u5e8f\u5217\u53f7\uff0c\u6216\u8005\u5c06\u5bc6\u94a5\u6dfb\u52a0\u5230\u5bfc\u5165\u7684CA\u4e2d\uff0c\u4ee5\u4fbf\u7528\u4e8e\u521b\u5efa\u548c\u7b7e\u7f72\u8bc1\u4e66\u548cCRL\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5bfc\u51fa\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h2>\n<p style=\"text-align: justify;\">\u4ece<strong>\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406<\/strong>\u7684CAs\u9009\u9879\u5361\u7684CA\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u5bfc\u51faCA\u7684\u8bc1\u4e66\u548c\/\u6216\u79c1\u94a5\u3002 \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0cCA\u7684\u4e13\u7528\u5bc6\u94a5\u4e0d\u4f1a\u88ab\u5bfc\u51fa\uff0c\u9664\u975e\u5c06CA\u79fb\u52a8\u5230\u65b0\u4f4d\u7f6e\u6216\u6b63\u5728\u8fdb\u884c\u5907\u4efd\u3002 \u5c06CA\u7528\u4e8e***\u6216\u5176\u4ed6\u7528\u9014\u65f6\uff0c\u4ec5\u5bfc\u51faCA\u7684\u8bc1\u4e66\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f<\/p>\n<p class=\"last\" style=\"text-align: justify;\">\u5982\u679cCA\u7684\u79c1\u94a5\u8fdb\u5165\u4e86\u9519\u8bef\u7684\u4eba\u624b\u4e2d\uff0c\u5219\u53e6\u4e00\u65b9\u53ef\u4ee5\u751f\u6210\u5bf9CA\u8ba4\u4e3a\u6709\u6548\u7684\u65b0\u8bc1\u4e66\u3002<\/p>\n<p style=\"text-align: justify;\">\u5bfc\u51faCA\u8bc1\u4e66, \u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1676\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-certificate.png\" alt=\"\" width=\"25\" height=\"25\" \/> \u56fe\u6807 \u3002\u8981\u5bfc\u51faCA\u79c1\u94a5\uff0c\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1677\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-key.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u56fe\u6807\u00a0\u3002\u00a0\u5c06\u9f20\u6807\u6307\u9488\u60ac\u505c\u5728\u56fe\u6807\u4e0a\uff0c\u5de5\u5177\u63d0\u793a\u5c06\u663e\u793a\u8981\u6267\u884c\u7684\u64cd\u4f5c\u4ee5\u65b9\u4fbf\u786e\u8ba4\u3002 \u8fd9\u4e9b\u6587\u4ef6\u5c06\u4ee5CA\u7684\u63cf\u8ff0\u6027\u540d\u79f0\u4f5c\u4e3a\u6587\u4ef6\u540d\u4e0b\u8f7d\uff0c\u8bc1\u4e66\u7684\u6269\u5c55\u540d\u4e3a<strong>.<\/strong>crt\uff0c\u79c1\u94a5\u4e3a<strong>.<\/strong>key\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5220\u9664\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h2>\n<p style=\"text-align: justify;\">\u8981\u5220\u9664CA\uff0c\u9996\u5148\u5fc5\u987b\u5c06\u5176\u4ece\u4e3b\u52a8\u4f7f\u7528\u4e2d\u5220\u9664\u3002<\/p>\n<ul>\n<li>\u68c0\u67e5\u53ef\u4ee5\u4f7f\u7528CA\u7684\u533a\u57df\uff0c\u4f8b\u5982OpenVPN\uff0cIPsec\u548c\u63d2\u4ef6\u3002<\/li>\n<li>\u5220\u9664\u4f7f\u7528CA\u7684\u6761\u76ee\u6216\u9009\u62e9\u5176\u4ed6CA\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0cCAs\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u8981\u5728\u5217\u8868\u4e2d\u5220\u9664\u7684CA\u3002<\/li>\n<li>\u70b9\u51fbCA\u884c\u7684\u7ed3\u5c3e\u5904\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u3002<\/li>\n<li>\u5728\u786e\u8ba4\u5bf9\u8bdd\u6846\u4e0a\u5355\u51fb\u786e\u5b9a\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u6309\u7167\u63d0\u793a\u8fdb\u884c\u66f4\u6b63\uff0c\u7136\u540e\u91cd\u8bd5\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u8bc1\u4e66\u7ba1\u7406<\/h1>\n<p style=\"text-align: justify;\">\u8bc1\u4e66\u901a\u8fc7\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u9009\u9879\u5361\u8fdb\u884c\u7ba1\u7406\u3002\u5728\u8fd9\u91cc\u53ef\u4ee5\u6dfb\u52a0\uff0c\u7f16\u8f91\uff0c\u5bfc\u51fa\u6216\u5220\u9664\u8bc1\u4e66\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8bc1\u4e66<\/h2>\n<p style=\"text-align: justify;\">\u8981\u521b\u5efa\u65b0\u8bc1\u4e66\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230<strong>\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406<\/strong>\uff0c\u8bc1\u4e66\u9009\u9879\u5361<\/li>\n<li>\u70b9\u51fb\u6dfb\u52a0\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8bc1\u4e66\u3002<\/li>\n<li>\u8f93\u5165\u8bc1\u4e66\u7684\u63cf\u8ff0\u6027\u540d\u79f0\u3002 \u8fd9\u5728\u6574\u4e2aGUI\u4e2d\u7528\u4f5c\u6b64\u8bc1\u4e66\u7684\u6807\u7b7e\u3002<\/li>\n<li>\u9009\u62e9\u6700\u9002\u5408\u8bc1\u4e66\u751f\u6210\u65b9\u5f0f\u7684\u65b9\u6cd5\u3002\u5305\u62ec\uff1a\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u5165\u73b0\u6709\u8bc1\u4e66<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8bc1\u4e66<\/li>\n<li>\u521b\u5efa\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\u5bfc\u5165\u73b0\u6709\u8bc1\u4e66<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679c\u9700\u8981\u5bfc\u5165\u6765\u81ea\u5916\u90e8\u6e90\u7684\u73b0\u6709\u8bc1\u4e66\uff0c\u53ef\u4ee5\u901a\u8fc7\u9009\u62e9\u5bfc\u5165\u73b0\u6709\u8bc1\u4e66\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u3002 \u8fd9\u5bf9\u4e8e\u4f7f\u7528\u5176\u4ed6\u7cfb\u7edf\u5236\u4f5c\u7684\u8bc1\u4e66\u6216\u7531\u7b2c\u4e09\u65b9\u63d0\u4f9b\u7684\u8bc1\u4e66\u5f88\u6709\u7528\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\n<p class=\"first\">\u8f93\u5165\u8bc1\u4e66\u6570\u636e\uff0c\u8fd9\u662f\u5fc5\u9700\u7684\u3002\u5b83\u901a\u5e38\u5305\u542b\u5728\u4ee5.crt\u7ed3\u5c3e\u7684\u6587\u4ef6\u4e2d\u3002\u8fd9\u5c06\u662f\u7eaf\u6587\u672c\uff0c\u5e76\u5305\u542b\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">A<\/span> <span class=\"n\">bunch<\/span> <span class=\"n\">of<\/span> <span class=\"n\">random<\/span><span class=\"o\">-<\/span><span class=\"n\">looking<\/span> <span class=\"n\">base64<\/span><span class=\"o\">-<\/span><span class=\"n\">encoded<\/span> <span class=\"n\">data<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">CERTIFICATE<\/span><span class=\"o\">-----<\/span><\/pre>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\n<p class=\"first\">\u8f93\u5165\u4e5f\u662f\u5fc5\u9700\u7684\u79c1\u94a5\u6570\u636e\u3002\u8fd9\u901a\u5e38\u5728\u4ee5.key\u7ed3\u5c3e\u7684\u6587\u4ef6\u4e2d\u3002\u8fd9\u5c06\u662f\u4e00\u4e2a\u7eaf\u6587\u672c\u6570\u636e\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">RSA<\/span> <span class=\"n\">PRIVATE<\/span> <span class=\"n\">KEY<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">A<\/span> <span class=\"n\">bunch<\/span> <span class=\"n\">of<\/span> <span class=\"n\">random<\/span><span class=\"o\">-<\/span><span class=\"n\">looking<\/span> <span class=\"n\">base64<\/span><span class=\"o\">-<\/span><span class=\"n\">encoded<\/span> <span class=\"n\">data<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">RSA<\/span> <span class=\"n\">PRIVATE<\/span> <span class=\"n\">KEY<\/span><span class=\"o\">-----<\/span><\/pre>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u70b9\u51fb\u4fdd\u5b58\u5b8c\u6210\u5bfc\u5165\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u9047\u5230\u9519\u8bef\uff0c\u8bf7\u6309\u7167\u63d0\u793a\u8bf4\u660e\u53bb\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8bc1\u4e66<\/h3>\n<p style=\"text-align: justify;\">\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8bc1\u4e66\u3002\u8fd9\u5c06\u4f7f\u7528\u73b0\u6709\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u4e2d\u7684\u4e00\u4e2a\u9881\u53d1\u65b0\u8bc1\u4e66\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u9009\u62e9\u8bc1\u4e66\u5c06\u88ab\u7b7e\u7f72\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u3002 \u53ea\u6709\u5b58\u5728\u79c1\u94a5\u7684CA\u624d\u4f1a\u5728\u8fd9\u4e2a\u5217\u8868\u4e2d\uff0c\u56e0\u4e3aCA\u9700\u8981\u79c1\u94a5\u624d\u80fd\u7b7e\u7f72\u8bc1\u4e66\u3002<\/li>\n<li>\u9009\u62e9\u5bc6\u94a5\u957f\u5ea6\u4ee5\u9009\u62e9\u8bc1\u4e66\u5728\u52a0\u5bc6\u65b9\u9762\u7684\u201c\u5f3a\u58ee\u201d\u7a0b\u5ea6\u3002\u00a0\u4e00\u822c\u4f7f\u7528\u9ed8\u8ba4\u503c2048\u3002<\/li>\n<li>\u4ece\u63d0\u4f9b\u7684\u5217\u8868\u4e2d\u9009\u62e9\u6458\u8981\u7b97\u6cd5\u3002 \u76ee\u524d\u7684\u6700\u4f73\u505a\u6cd5\u662f\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u6bd4SHA1\u66f4\u5f3a\u5927\u7684\u7b97\u6cd5\u3002 SHA256\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/li>\n<\/ul>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li style=\"list-style-type: none;\">\n<ul class=\" list-paddingleft-2\">\n<li>\n<p class=\"first\">\u9009\u62e9\u4e00\u4e2a\u7b26\u5408\u6b64\u8bc1\u4e66\u7528\u9014\u7684\u8bc1\u4e66\u7c7b\u578b\u3002<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p class=\"first\">\u5982\u679c\u8bc1\u4e66\u5c06\u7528\u4e8eVPN\u670d\u52a1\u5668\u6216HTTPS\u670d\u52a1\u5668\uff0c\u8bf7\u9009\u62e9\u670d\u52a1\u5668\u8bc1\u4e66\u3002\u8fd9\u8868\u660e\u8bc1\u4e66\u5185\u90e8\u53ef\u80fd\u4f7f\u7528\u4e86\u670d\u52a1\u5668\u89d2\u8272\uff0c\u800c\u6ca1\u6709\u5176\u4ed6\u8bc1\u4e66\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u670d\u52a1\u5668\u7c7b\u578b\u8bc1\u4e66\u5305\u62ec\u6307\u793a\u5b83\u4eec\u53ef\u7528\u4e8e\u670d\u52a1\u5668\u8eab\u4efd\u9a8c\u8bc1\u7684\u201c\u6269\u5c55\u5bc6\u94a5\u7528\u6cd5\u201d\u5c5e\u6027\u4ee5\u53caMicrosoft\u4f7f\u7528\u7684OID 1.3.6.1.5.5.8.2.2\uff0c\u4ee5\u8868\u660e\u8bc1\u4e66\u53ef\u7528\u4f5cIKE\u4e2d\u4ecb\u3002 \u8fd9\u4e9b\u5bf9\u4e8eWindows 7\u53ca\u66f4\u9ad8\u7248\u672c\u6765\u8bf4\u9700\u8981\u4fe1\u4efb\u670d\u52a1\u5668\u8bc1\u4e66\u4ee5\u7528\u4e8e\u67d0\u4e9b\u7c7b\u578b\u7684VPN\u3002 \u5b83\u4eec\u8fd8\u88ab\u6807\u8bb0\u4e3a\u7ea6\u675f\u6761\u4ef6\uff0c\u8868\u660e\u5b83\u4eec\u4e0d\u662fCA\uff0c\u5e76\u4e14nsCertType\u8bbe\u7f6e\u4e3a\u201cserver\u201d\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li style=\"list-style-type: none;\">\n<ul class=\" list-paddingleft-2\">\n<li style=\"list-style-type: none;\">\n<ul class=\" list-paddingleft-2\">\n<li>\n<p class=\"first\">\u5982\u679c\u8bc1\u4e66\u53ef\u4ee5\u5728\u6700\u7ec8\u7528\u6237\u5bb9\u91cf\uff08\u5982VPN\u5ba2\u6237\u7aef\uff09\u4e2d\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u7528\u4f5c\u670d\u52a1\u5668\uff0c\u8bf7\u9009\u62e9\u201c\u7528\u6237\u8bc1\u4e66\u201d\u3002\u8fd9\u53ef\u4ee5\u9632\u6b62\u7528\u6237\u4f7f\u7528\u81ea\u5df1\u7684\u8bc1\u4e66\u6765\u6a21\u62df\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u7528\u6237\u7c7b\u578b\u8bc1\u4e66\u5305\u62ec\u6269\u5c55\u5bc6\u94a5\u7528\u6cd5\u5c5e\u6027\uff0c\u6307\u793a\u5b83\u4eec\u53ef\u7528\u4e8e\u5ba2\u6237\u7aef\u8eab\u4efd\u9a8c\u8bc1\u3002\u5b83\u4eec\u4e5f\u88ab\u6807\u8bb0\u4e3a\u6307\u793a\u5b83\u4eec\u4e0d\u662fCA\u7684\u7ea6\u675f\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li style=\"list-style-type: none;\">\n<ul class=\" list-paddingleft-2\">\n<li style=\"list-style-type: none;\">\n<ul class=\" list-paddingleft-2\">\n<li>\n<p class=\"first\">\u9009\u62e9\u8bc1\u4e66\u6743\u9650\u6765\u521b\u5efa\u4e2d\u95f4CA\u3002\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u751f\u6210\u7684\u8bc1\u4e66\u5c06\u4ece\u5c5e\u4e8e\u6240\u9009\u7684CA\u3002\u5b83\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684\u8bc1\u4e66\uff0c\u4f46\u662f\u5728\u4f7f\u7528\u6839CA\u65f6\u4e5f\u5fc5\u987b\u5305\u542b\u5b83\u3002 \u8fd9\u4e5f\u88ab\u79f0\u4e3a\u201cchaining\uff08\u94fe\u63a5\uff09\u201d\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u8f93\u5165<strong>\u6709\u6548\u671f<\/strong>\u7684\u503c\u4ee5\u6307\u5b9a\u8bc1\u4e66\u6709\u6548\u7684\u5929\u6570\u3002 \u6301\u7eed\u65f6\u95f4\u53d6\u51b3\u4e8e\u4e2a\u4eba\u504f\u597d\u548c\u7f51\u7ad9\u653f\u7b56\u3002\u5efa\u8bae\u4f7f\u75283650\u5929\uff0c\u8fd9\u5927\u7ea6\u662f10\u5e74\u3002<\/li>\n<li>\u4e3a\u8bc1\u4e66\u4e2d\u7684\u4e2a\u6027\u5316\u53c2\u6570\u8f93\u5165\u4e13\u6709\u540d\u79f0\u90e8\u5206\u7684\u503c\u3002 \u8fd9\u4e9b\u5b57\u6bb5\u4e2d\u7684\u5927\u90e8\u5206\u90fd\u5c06\u9884\u5148\u586b\u5165\u6765\u81eaCA\u7684\u6570\u636e\u3002 \u8fd9\u4e9b\u901a\u5e38\u6839\u636e\u7ec4\u7ec7\u7684\u4fe1\u606f\u586b\u5199\uff0c\u6216\u8005\u6839\u636e\u4e2a\u4eba\u4fe1\u606f\u60c5\u51b5\u8fdb\u884c\u586b\u5199\u3002 \u4e0d\u5f97\u4f7f\u7528\u6807\u70b9\u7b26\u53f7\u548c\u7279\u6b8a\u5b57\u7b26\u3002\n<ul class=\" list-paddingleft-2\">\n<li>\u4ece\u5217\u8868\u4e2d\u9009\u62e9\u56fd\u5bb6\u4ee3\u7801\u3002 \u8fd9\u662fISO\u8ba4\u53ef\u7684\u56fd\u5bb6\u4ee3\u7801\uff0c\u800c\u4e0d\u662f\u4e3b\u673a\u540d\u9876\u7ea7\u57df\u540d\u3002<\/li>\n<li>\u8f93\u5165\u5b8c\u5168\u62fc\u51fa\u7684\u5dde\u6216\u7701\uff0c\u800c\u4e0d\u662f\u7f29\u5199\u3002<\/li>\n<li>\u8f93\u5165\u57ce\u5e02\u540d\u79f0\u3002<\/li>\n<li>\u8f93\u5165\u7ec4\u7ec7\u540d\u79f0\uff0c\u901a\u5e38\u662f\u516c\u53f8\u540d\u79f0\u3002<\/li>\n<li>\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/li>\n<li>\u8f93\u5165\u516c\u7528\u540d\u79f0\uff08CN\uff09\u3002 \u8be5\u5b57\u6bb5\u662f\u6807\u8bc6\u8bc1\u4e66\u7684\u5185\u90e8\u540d\u79f0\u3002 \u4e0eCA\u4e0d\u540c\uff0c\u8bc1\u4e66\u7684CN\u5e94\u8be5\u662f\u7528\u6237\u540d\u6216\u4e3b\u673a\u540d\u3002 \u4f8b\u5982\uff0c\u5b83\u53ef\u4ee5\u79f0\u4e3aVPNCert\uff0cuser01\u6216VPNrouter.example.com\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u5c3d\u7ba1\u5b83\u5728\u6280\u672f\u4e0a\u662f\u6709\u6548\u7684\uff0c\u4f46\u8bf7\u907f\u514d\u5728CN\u4e2d\u4f7f\u7528\u7a7a\u683c\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\n<p class=\"first\">\u5982\u679c\u9700\u8981\uff0c\u5355\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u6dfb\u52a0\u5907\u7528\u540d\u79f0\u3002 \u5907\u7528\u540d\u79f0\u5141\u8bb8\u8bc1\u4e66\u6307\u5b9a\u5bf9CN\u5168\u90e8\u6709\u6548\u7684\u591a\u4e2a\u540d\u79f0\uff0c\u4f8b\u5982\u4e24\u4e2a\u4e0d\u540c\u7684\u4e3b\u673a\u540d\u3001\u9644\u52a0\u7684IP\u5730\u5740\u3001URL\u6216\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002 \u5982\u679c\u4e0d\u9700\u8981\u6216\u76ee\u7684\u4e0d\u660e\u786e\uff0c\u8be5\u5b57\u6bb5\u53ef\u4ee5\u7559\u7a7a\u3002<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u8f93\u5165\u5907\u7528\u540d\u79f0\u7684\u7c7b\u578b\u3002 \u8fd9\u5fc5\u987b\u5305\u542bDNS\uff08FQDN\u6216\u4e3b\u673a\u540d\uff09\u3001IP\uff08IP\u5730\u5740\uff09\u3001URI\u6216\u7535\u5b50\u90ae\u4ef6\u4e4b\u4e00\u3002<\/li>\n<li>\u8f93\u5165\u5907\u7528\u540d\u79f0\u7684\u503c\u3002 \u8be5\u5b57\u6bb5\u5fc5\u987b\u5305\u542b\u57fa\u4e8e\u8f93\u5165\u7c7b\u578b\u7684\u9002\u5f53\u683c\u5f0f\u7684\u503c\u3002<\/li>\n<li>\u5355\u51fb\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\uff0c\u53ef\u4ee5\u5220\u9664\u4e0d\u9700\u8981\u7684\u5907\u7528\u540d\u79f0\u3002<\/li>\n<li>\u5bf9\u5176\u4ed6\u7684\u5907\u7528\u540d\u79f0\u91cd\u590d\u6b64\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p class=\"first\">\u5355\u51fb\u4fdd\u5b58\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u6839\u636e\u63d0\u793a\u4fee\u6b63\uff0c\u5e76\u518d\u6b21\u4fdd\u5b58\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u521b\u5efa\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42<\/h3>\n<p style=\"text-align: justify;\">\u9009\u62e9\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42\u7684\u65b9\u6cd5\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8bf7\u6c42\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u53ef\u4ee5\u53d1\u9001\u5230\u7b2c\u4e09\u65b9CA\u8fdb\u884c\u7b7e\u540d\u3002 \u8fd9\u5c06\u7528\u4e8e\u4ece\u53d7\u4fe1\u4efb\u7684\u6839\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u83b7\u53d6\u8bc1\u4e66\u3002 \u4e00\u65e6\u9009\u62e9\u4e86\u6b64\u65b9\u6cd5\uff0c\u521b\u5efa\u6b64\u8bc1\u4e66\u7684\u5176\u4f59\u53c2\u6570\u4e0e\u521b\u5efa\u5185\u90e8\u8bc1\u4e66\u7684\u53c2\u6570\u76f8\u540c\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5bfc\u51fa\u8bc1\u4e66<\/h2>\n<p style=\"text-align: justify;\">\u4ece<strong>\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406<\/strong>\uff0c\u8bc1\u4e66\u9009\u9879\u5361\u4e2d\u7684\u8bc1\u4e66\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u5bfc\u51fa\u8bc1\u4e66\u548c\u5176\u79c1\u94a5\u3002<\/p>\n<p style=\"text-align: justify;\">\u8981\u5bfc\u51fa\u8bc1\u4e66\uff0c\u5355\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1676\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-certificate.png\" alt=\"\" width=\"25\" height=\"25\" \/> \u56fe\u6807\u3002 \u5bfc\u51fa\u8bc1\u4e66\u7684\u79c1\u94a5\uff0c\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1677\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-key.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002\u8981\u5c06CA\u8bc1\u4e66\uff0c\u8bc1\u4e66\u548c\u8bc1\u4e66\u7684\u79c1\u94a5\u4e00\u8d77\u5bfc\u51fa\u5230PKCS\uff0312\u6587\u4ef6\u4e2d\uff0c \u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1679\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-archive.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u56fe\u6807\u3002 \u8981\u786e\u8ba4\u6b63\u5728\u5bfc\u51fa\u7684\u6587\u4ef6\uff0c\u5c06\u9f20\u6807\u6307\u9488\u60ac\u505c\u5728\u56fe\u6807\u4e0a\uff0c\u5c06\u4f1a\u63d0\u793a\u8981\u6267\u884c\u7684\u64cd\u4f5c\u3002<\/p>\n<p style=\"text-align: justify;\">\u8fd9\u4e9b\u6587\u4ef6\u5c06\u4ee5\u8bc1\u4e66\u7684\u63cf\u8ff0\u6027\u540d\u79f0\u4f5c\u4e3a\u6587\u4ef6\u540d\u4e0b\u8f7d\uff0c\u8bc1\u4e66\u7684\u6269\u5c55\u540d\u4e3a<strong>.<\/strong>crt\uff0c\u79c1\u94a5\u4e3a<strong>.<\/strong>key\uff0cPKCS\uff0312\u6587\u4ef6\u4e3a<strong>.<\/strong>p12\u3002<\/p>\n<h2 style=\"text-align: justify;\"><\/h2>\n<h2 style=\"text-align: justify;\">\u5220\u9664\u8bc1\u4e66<\/h2>\n<p style=\"text-align: justify;\">\u8981\u5220\u9664\u8bc1\u4e66\uff0c\u9996\u5148\u5fc5\u987b\u5c06\u5176\u4ece\u6d3b\u52a8\u4f7f\u7528\u4e2d\u5220\u9664\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u68c0\u67e5\u4f7f\u7528\u8bc1\u4e66\u7684\u533a\u57df\uff0c\u4f8b\u5982WebGUI\u9009\u9879\uff0cOpenVPN\uff0cIPsec\u548c\u63d2\u4ef6\u3002<\/li>\n<li>\u4f7f\u7528\u8bc1\u4e66\u5220\u9664\u6761\u76ee\uff0c\u6216\u9009\u62e9\u53e6\u4e00\u4e2a\u8bc1\u4e66\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf\u201d&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u8981\u5728\u5217\u8868\u4e2d\u5220\u9664\u7684\u8bc1\u4e66<\/li>\n<li>\u70b9\u51fb\u8bc1\u4e66\u884c\u6700\u540e<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002<\/li>\n<li>\u5728\u786e\u8ba4\u5bf9\u8bdd\u6846\u4e0a\u5355\u51fb\u786e\u5b9a\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u6309\u7167\u5c4f\u5e55\u4e0a\u7684\u8bf4\u660e\u66f4\u6b63\u95ee\u9898\uff0c\u7136\u540e\u91cd\u8bd5\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7528\u6237\u8bc1\u4e66<\/h2>\n<p style=\"text-align: justify;\">\u5982\u679c\u6b63\u5728\u4f7f\u7528\u9700\u8981\u7528\u6237\u8bc1\u4e66\u7684VPN\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u4e4b\u4e00\u6765\u521b\u5efaVPN\u3002\u786e\u5207\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8eVPN\u7684\u8eab\u4efd\u9a8c\u8bc1\u6267\u884c\u7684\u4f4d\u7f6e\u4ee5\u53ca\u8bc1\u4e66\u662f\u5426\u5df2\u5b58\u5728\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u65e0\u8ba4\u8bc1\u6216\u5916\u90e8\u8ba4\u8bc1<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679c\u6ca1\u6709\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\uff0c\u6216\u8005\u6b63\u5728\u5916\u90e8\u670d\u52a1\u5668\uff08RADIUS\uff0cLDAP\u7b49\uff09\u4e0a\u6267\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\uff0c\u8bf7\u50cf\u4e0a\u8ff0\u4efb\u4f55\u5176\u4ed6\u8bc1\u4e66\u4e00\u6837\u5236\u4f5c\u7528\u6237\u8bc1\u4e66\u3002 \u786e\u4fdd\u8bc1\u4e66\u7c7b\u578b\u9009\u62e9\u4e86\u7528\u6237\u8bc1\u4e66\uff0c\u5e76\u5c06\u901a\u7528\u540d\u79f0\u8bbe\u7f6e\u4e3a\u7528\u6237\u7684\u7528\u6237\u540d\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u672c\u5730\u8eab\u4efd\u9a8c\u8bc1\/\u521b\u5efa\u7528\u6237\u65f6\u521b\u5efa\u8bc1\u4e66<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679c\u6b63\u5728\u5bf9pfSense\u6267\u884c\u7528\u6237\u8ba4\u8bc1\uff0c\u5219\u53ef\u4ee5\u5728\u7528\u6237\u7ba1\u7406\u5668\u5185\u90e8\u5236\u4f5c\u7528\u6237\u8bc1\u4e66\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u7528\u6237\u7ba1\u7406\u3002<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u3002<\/li>\n<li>\u586b\u5199\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/li>\n<li>\u9009\u62e9\u5728\u7528\u6237\u8bc1\u4e66\u90e8\u5206\u521b\u5efa\u7528\u6237\u8bc1\u4e66\uff0c\u8be5\u90e8\u5206\u5c06\u663e\u793a\u7528\u4e8e\u521b\u5efa\u7528\u6237\u8bc1\u4e66\u7684\u7b80\u5355\u8868\u5355\u3002\n<ul class=\" list-paddingleft-2\">\n<li>\u8f93\u5165\u4e00\u4e2a\u7b80\u77ed\u7684\u63cf\u8ff0\u6027\u540d\u79f0\uff0c\u53ef\u4ee5\u662f\u7528\u6237\u540d\u6216\u8bf8\u5982Bob\u7684\u8fdc\u7a0b\u8bbf\u95ee***\u8bc1\u4e66\u7b49\u3002<\/li>\n<li>\u4e3aVPN\u9009\u62e9\u5408\u9002\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u3002<\/li>\n<li>\u5982\u679c\u9700\u8981\u8c03\u6574\u5bc6\u94a5\u957f\u5ea6\u548c\u4f7f\u7528\u671f\u9650\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5b8c\u6210\u5176\u4ed6\u6240\u9700\u7684\u7528\u6237\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li>\u70b9\u51fb<strong>\u4fdd\u5b58<\/strong>\u3002<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\u672c\u5730\u8ba4\u8bc1\/\u5411\u73b0\u6709\u7528\u6237\u6dfb\u52a0\u8bc1\u4e66<\/h3>\n<p style=\"text-align: justify;\">\u5411\u73b0\u6709\u7528\u6237\u6dfb\u52a0\u8bc1\u4e66\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u7528\u6237\u7ba1\u7406\u3002<\/li>\n<li>\u70b9\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u7f16\u8f91\u7528\u6237\u3002<\/li>\n<li>\u5355\u51fb\u7528\u6237\u8bc1\u4e66\u4e0b\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u6dfb\u52a0\u3002<\/li>\n<li>\u6839\u636e\u9700\u8981\u521b\u5efa\u65b0\u8bc1\u4e66\uff0c\u6216\u9009\u62e9\u9009\u62e9\u73b0\u6709\u8bc1\u4e66\u3002<\/li>\n<\/ul>\n<h1 style=\"text-align: justify;\">\u8bc1\u4e66\u540a\u9500\u5217\u8868\u7ba1\u7406<\/h1>\n<p style=\"text-align: justify;\">\u8bc1\u4e66\u540a\u9500\u5217\u8868\uff08CRL\uff09\u662fX.509\u7cfb\u7edf\u7684\u4e00\u90e8\u5206\uff0c\u7528\u4e8e\u53d1\u5e03\u4e0d\u5e94\u518d\u53d7\u4fe1\u4efb\u7684\u8bc1\u4e66\u5217\u8868\u3002\u8fd9\u4e9b\u8bc1\u4e66\u53ef\u80fd\u5df2\u88ab\u76d7\u7528\u6216\u9700\u8981\u5b83\u5931\u6548\u3002\u4f7f\u7528CA\u7684\u5e94\u7528\u7a0b\u5e8f\uff08\u4f8b\u5982Open***\uff09\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528CRL\uff0c\u4ee5\u4fbf\u9a8c\u8bc1\u8fde\u63a5\u7684\u5ba2\u6237\u7aef\u8bc1\u4e66\u3002\u4f7f\u7528\u5176\u79c1\u94a5\u751f\u6210CRL\u5e76\u5bf9CA\u8fdb\u884c\u7b7e\u540d\uff0c\u56e0\u6b64\u4e3a\u4e86\u5728GUI\u4e2d\u4e3aCRL\u521b\u5efa\u6216\u6dfb\u52a0\u8bc1\u4e66\uff0cCA\u7684\u79c1\u94a5\u5fc5\u987b\u5b58\u5728\u3002\u5982\u679cCA\u662f\u5916\u90e8\u7ba1\u7406\u7684\uff0c\u5e76\u4e14CA\u7684\u79c1\u94a5\u4e0d\u5728\u9632\u706b\u5899\u4e0a\uff0c\u5219CRL\u4ecd\u53ef\u80fd\u5728\u9632\u706b\u5899\u4e4b\u5916\u751f\u6210\u5e76\u5bfc\u5165\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528CRL\u7684\u4f20\u7edf\u65b9\u5f0f\u662f\u6bcf\u4e2aCA\u53ea\u6709\u4e00\u4e2aCRL\uff0c\u5e76\u4e14\u53ea\u5411\u8be5CRL\u6dfb\u52a0\u65e0\u6548\u8bc1\u4e66\u3002\u4f46\u662f\uff0c\u5728pfSense\u4e2d\uff0c\u53ef\u80fd\u4f1a\u4e3a\u5355\u4e2aCA\u521b\u5efa\u591a\u4e2aCRL\u3002\u5728OpenVPN\u4e2d\uff0c\u53ef\u4ee5\u4e3a\u4e0d\u540c\u7684VPN\u5b9e\u4f8b\u9009\u62e9\u4e0d\u540c\u7684CRL\u3002\u4f8b\u5982\uff0c\u8fd9\u53ef\u4ee5\u7528\u6765\u9632\u6b62\u7279\u5b9a\u8bc1\u4e66\u8fde\u63a5\u5230\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u540c\u65f6\u5141\u8bb8\u5b83\u8fde\u63a5\u5230\u53e6\u4e00\u4e2a\u5b9e\u4f8b\u3002\u5bf9\u4e8eIPsec\uff0c\u6240\u6709CRL\u90fd\u4f1a\u88ab\u54a8\u8be2\uff0c\u5e76\u4e14\u76ee\u524d\u6ca1\u6709\u4e0eOpenVPN\u4e00\u8d77\u5b58\u5728\u7684\u9009\u62e9\u3002<\/p>\n<p style=\"text-align: justify;\">\u8bc1\u4e66\u540a\u9500\u5217\u8868\u901a\u8fc7\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u8fdb\u884c\u7ba1\u7406\u3002\u5728\u6b64\u9875\u9762\u4e0a\u53ef\u4ee5\u6dfb\u52a0\u3001\u7f16\u8f91\u3001\u5bfc\u51fa\u6216\u5220\u9664CRL\u6761\u76ee\u3002\u8be5\u5217\u8868\u5c06\u663e\u793a\u6240\u6709\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u4ee5\u53ca\u6dfb\u52a0CRL\u7684\u9009\u9879\u3002\u8fd8\u4f1a\u6307\u51faCRL\u662f\u5185\u90e8\u8fd8\u662f\u5916\u90e8\uff08\u5bfc\u5165\uff09\uff0c\u5e76\u663e\u793a\u6bcf\u4e2aCRL\u4e0a\u5df2\u540a\u9500\u591a\u5c11\u4e2a\u8bc1\u4e66\u7684\u6570\u91cf\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/h2>\n<p style=\"text-align: justify;\">\u521b\u5efa\u65b0\u7684CRL\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u8bc1\u4e66\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u5c06\u8981\u4e3a\u5176\u521b\u5efaCRL\u7684CA\u884c\u3002<\/li>\n<li>\u5355\u51fb\u8be5\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u201c\u6dfb\u52a0\u201d\u6216\u201c\u5bfc\u5165CRL\u201d\uff0c\u521b\u5efa\u65b0\u7684CRL\u3002<\/li>\n<li>\u9009\u62e9\u521b\u5efa\u5185\u90e8\u8bc1\u4e66\u540a\u9500\u5217\u8868\u3002<\/li>\n<li>\u4e3aCRL\u8f93\u5165\u63cf\u8ff0\u6027\u540d\u79f0\uff0c\u8be5\u540d\u79f0\u7528\u4e8e\u5728GUI\u7684\u5217\u8868\u4e2d\u6807\u8bc6\u6b64CRL\u3002 \u901a\u5e38\u6700\u597d\u5305\u542b\u5bf9CA\u540d\u79f0\u548c\/\u6216CRL\u7528\u9014\u7684\u5f15\u7528\u3002<\/li>\n<li>\u4ece\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u9002\u5f53\u7684CA\u3002<\/li>\n<li>\u8f93\u5165\u6709\u6548\u671f\u3002 \u9ed8\u8ba4\u503c\u4e3a9999\u5929\uff0c\u5373\u5c06\u8fd127\u5e74\u534a\u3002<\/li>\n<li>\u70b9\u51fb<strong>\u4fdd\u5b58<\/strong>\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u6d4f\u89c8\u5668\u5c06\u8fd4\u56de\u5230CRL\u5217\u8868\uff0c\u65b0\u6761\u76ee\u5c06\u663e\u793a\u5728\u5217\u8868\u4e2d\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5bfc\u5165\u73b0\u6709\u7684\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/h2>\n<p style=\"text-align: justify;\">\u4ece\u5916\u90e8\u6765\u6e90\u5bfc\u5165CRL\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u5c06\u5bfc\u5165CRL\u7684CA\u884c\u3002<\/li>\n<li>\u5355\u51fb\u8be5\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u201c\u6dfb\u52a0\u201d\u6216\u201c\u5bfc\u5165CRL\u201d\uff0c\u521b\u5efa\u65b0\u7684CRL\u3002<\/li>\n<li>\u9009\u62e9\u5bfc\u5165\u73b0\u6709\u8bc1\u4e66\u540a\u9500\u5217\u8868\u3002<\/li>\n<li>\u4e3aCRL\u8f93\u5165\u63cf\u8ff0\u6027\u540d\u79f0\uff0c\u8be5\u540d\u79f0\u7528\u4e8e\u5728GUI\u7684\u5217\u8868\u4e2d\u6807\u8bc6\u6b64CRL\u3002 \u901a\u5e38\u6700\u597d\u5305\u542b\u5bf9CA\u540d\u79f0\u548c\/\u6216CRL\u7528\u9014\u7684\u5f15\u7528\u3002<\/li>\n<li>\u4ece\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u9002\u5f53\u7684CA\u3002<\/li>\n<li>\u8f93\u5165CRL\u6570\u636e\u3002 \u8fd9\u901a\u5e38\u662f\u4ee5.crl\u7ed3\u5c3e\u7684\u6587\u4ef6\u3002\u00a0\u4e00\u822c\u5305\u542b\u5982\u4e0b\u7684\u7eaf\u6587\u672c\u6570\u636e\uff1a<\/li>\n<\/ul>\n<pre><span class=\"o\">-----<\/span><span class=\"n\">BEGIN<\/span> <span class=\"n\">X509<\/span> <span class=\"n\">CRL<\/span><span class=\"o\">-----<\/span>\r\n<span class=\"p\">[<\/span><span class=\"n\">A<\/span> <span class=\"n\">bunch<\/span> <span class=\"n\">of<\/span> <span class=\"n\">random<\/span><span class=\"o\">-<\/span><span class=\"n\">looking<\/span> <span class=\"n\">base64<\/span><span class=\"o\">-<\/span><span class=\"n\">encoded<\/span> <span class=\"n\">data<\/span><span class=\"p\">]<\/span>\r\n<span class=\"o\">-----<\/span><span class=\"n\">END<\/span> <span class=\"n\">X509<\/span> <span class=\"n\">CRL<\/span><span class=\"o\">-----<\/span><\/pre>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\n<p class=\"first\">\u70b9\u51fb\u4fdd\u5b58\u5b8c\u6210\u5bfc\u5165\u8fc7\u7a0b\u3002<\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u6309\u7167\u63d0\u793a\u8bf4\u660e\u66f4\u6b63\u95ee\u9898\uff0c\u7136\u540e\u91cd\u8bd5\u3002<\/p>\n<h2 style=\"text-align: justify;\"><\/h2>\n<h2 style=\"text-align: justify;\">\u5bfc\u51fa\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/h2>\n<p style=\"text-align: justify;\">\u4ece<strong>\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406<\/strong>\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u7684CRL\u5217\u8868\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u5bfc\u51faCRL\u3002 \u8981\u5bfc\u51faCRL\uff0c\u8bf7\u5355\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1680\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-download.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002\u00a0\u4e0b\u8f7d\u7684\u6587\u4ef6\u4ee5CRL\u7684\u63cf\u8ff0\u6027\u540d\u79f0\u4f5c\u4e3a\u6587\u4ef6\u540d\uff0c\u6269\u5c55\u540d\u4e3a<strong>.<\/strong>crl\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5220\u9664\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/h2>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u68c0\u67e5\u53ef\u4ee5\u4f7f\u7528CRL\u7684\u533a\u57df\uff0c\u4f8b\u5982OpenVPN\u3002<\/li>\n<li>\u4f7f\u7528CRL\u5220\u9664\u6761\u76ee\uff0c\u6216\u8005\u9009\u62e9\u53e6\u4e00\u4e2aCRL\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\u5668\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u8981\u5728\u5217\u8868\u4e2d\u5220\u9664\u7684CRL\u3002<\/li>\n<li>\u5355\u51fbCRL\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002<\/li>\n<li>\u5728\u786e\u8ba4\u5bf9\u8bdd\u6846\u4e0a\u5355\u51fb\u786e\u5b9a\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u6309\u7167\u63d0\u793a\u8bf4\u660e\u66f4\u6b63\u95ee\u9898\uff0c\u7136\u540e\u91cd\u8bd5\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u64a4\u6d88\u8bc1\u4e66<\/h2>\n<p style=\"text-align: justify;\">\u9664\u975e\u5b83\u5305\u542b\u540a\u9500\u7684\u8bc1\u4e66\uff0c\u5426\u5219CRL\u5e76\u4e0d\u662f\u975e\u5e38\u6709\u7528\u3002\u901a\u8fc7\u5c06\u8bc1\u4e66\u6dfb\u52a0\u5230CRL\u6765\u540a\u9500\u8bc1\u4e66<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u8981\u5728\u5217\u8868\u4e2d\u7f16\u8f91\u7684CRL\u3002<\/li>\n<li>\u5355\u51fbCRL\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002 \u5c06\u663e\u793a\u4e00\u4e2a\u9875\u9762\uff0c\u5217\u51fa\u5f53\u524d\u5df2\u64a4\u9500\u7684\u8bc1\u4e66\u4ee5\u53ca\u6dfb\u52a0\u65b0\u8bc1\u4e66\u7684\u63a7\u4ef6\u3002<\/li>\n<li>\u4ece<strong>\u9009\u62e9\u8981\u64a4\u9500\u7684\u8bc1\u4e66<\/strong>\u5217\u8868\u4e2d\u9009\u62e9\u8bc1\u4e66\u3002<\/li>\n<li>\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u539f\u56e0\u4ee5\u6307\u793a\u8bc1\u4e66\u88ab\u540a\u9500\u7684\u539f\u56e0\u3002 \u8fd9\u4e9b\u4fe1\u606f\u4e0d\u5f71\u54cd\u8bc1\u4e66\u7684\u6709\u6548\u6027\uff0c\u4ec5\u4ec5\u662f\u4fe1\u606f\u6027\u7684\u3002 \u8be5\u9009\u9879\u53ef\u4ee5\u4fdd\u7559\u4e3a\u9ed8\u8ba4\u503c\u3002<\/li>\n<li>\u70b9\u51fb\u6dfb\u52a0\uff0c\u8bc1\u4e66\u5c06\u88ab\u6dfb\u52a0\u5230CRL\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5728\u5f53\u524d\u9875\u9762\u4e5f\u53ef\u4ee5\u4eceCRL\u4e2d\u5220\u9664\u8bc1\u4e66<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361<\/li>\n<li>\u627e\u5230\u8981\u5728\u5217\u8868\u4e2d\u7f16\u8f91\u7684CRL\u3002<\/li>\n<li>\u5355\u51fbCRL\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002<\/li>\n<li>\u5728\u5217\u8868\u4e2d\u627e\u5230\u8bc1\u4e66\uff0c\u7136\u540e\u5355\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u5c06\u5176\u4eceCRL\u4e2d\u5220\u9664\u3002<\/li>\n<li>\u5728\u786e\u8ba4\u5bf9\u8bdd\u6846\u4e0a\u5355\u51fb\u786e\u5b9a\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u6dfb\u52a0\u6216\u5220\u9664\u8bc1\u4e66\u540e\uff0c\u5982\u679c\u4efb\u4f55VPN\u5b9e\u4f8b\u5f53\u524d\u6b63\u5728\u4f7f\u7528CRL\uff0cCRL\u5c06\u88ab\u91cd\u5199\uff0c\u4ee5\u4fbfCRL\u66f4\u6539\u7acb\u5373\u751f\u6548\u3002<\/p>\n<h2 style=\"text-align: justify;\"><\/h2>\n<h2 style=\"text-align: justify;\">\u66f4\u65b0\u5bfc\u5165\u7684\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/h2>\n<p style=\"text-align: justify;\">\u66f4\u65b0\u5bfc\u5165\u7684CRL:<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0c\u8bc1\u4e66\u540a\u9500\u9009\u9879\u5361\u3002<\/li>\n<li>\u627e\u5230\u8981\u5728\u5217\u8868\u4e2d\u7f16\u8f91\u7684CRL\u3002<\/li>\n<li>\u5355\u51fbCRL\u884c\u672b\u5c3e\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u3002<\/li>\n<li>\u6e05\u9664CRL\u6570\u636e\u6846\u4e2d\u7c98\u8d34\u7684\u5185\u5bb9\uff0c\u5e76\u5c06\u5176\u66ff\u6362\u4e3a\u65b0CRL\u7684\u5185\u5bb9\u3002<\/li>\n<li>\u70b9\u51fb\u4fdd\u5b58\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u66f4\u65b0\u5bfc\u5165\u7684CRL\u540e\uff0c\u5982\u679c\u4efb\u4f55VPN\u5b9e\u4f8b\u5f53\u524d\u6b63\u5728\u4f7f\u7528\u8be5CRL\uff0c\u5219CRL\u66f4\u6539\u5c06\u7acb\u5373\u751f\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bc1\u4e66\u7ba1\u7406 \u8bc1\u4e66\u6743\u9650\u7ba1\u7406 \u8bc1\u4e66\u7ba1\u7406 \u8bc1\u4e66\u540a\u9500\u5217\u8868 X.509\u516c\u94a5\u57fa\u7840\u77e5\u8bc6\u4ecb\u7ecd VP &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=159\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[230],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-230"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}