{"id":7071,"date":"2020-08-28T12:58:39","date_gmt":"2020-08-28T04:58:39","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7071"},"modified":"2020-08-28T12:58:39","modified_gmt":"2020-08-28T04:58:39","slug":"crlutil","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/crlutil","title":{"rendered":"crlutil\u547d\u4ee4 – \u5217\u51fa\u3001\u751f\u6210\u3001\u4fee\u6539\u6216\u5220\u9664NSS\u5b89\u5168\u6570\u636e\u5e93\u6587\u4ef6\u4e2d\u7684CRL"},"content":{"rendered":"\n

crlutil\u547d\u4ee4\u5217\u51fa\u3001\u751f\u6210\u3001\u4fee\u6539\u6216\u5220\u9664NSS\u5b89\u5168\u6570\u636e\u5e93\u6587\u4ef6\u4e2d\u7684CRL\uff0c\u5e76\u5217\u51fa\u3001\u521b\u5efa\u3001\u4fee\u6539\u6216\u5220\u9664\u7279\u5b9aCRL\u4e2d\u7684\u8bc1\u4e66\u9879\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>crlutil [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-D<\/td>\u4ece\u8bc1\u4e66\u6570\u636e\u5e93\u4e2d\u5220\u9664\u8bc1\u4e66\u540a\u9500\u5217\u8868<\/td><\/tr>
-E<\/td>\u4ece\u8bc1\u4e66\u6570\u636e\u5e93\u4e2d\u5220\u9664\u6307\u5b9a\u7c7b\u578b\u7684\u6240\u6709CRL<\/td><\/tr>
-G<\/td>\u521b\u5efa\u65b0\u8bc1\u4e66\u540a\u9500\u5217\u8868\uff08CRL\uff09<\/td><\/tr>
-I<\/td>\u5bfc\u5165\u5230CRL\u5230\u8bc1\u4e66\u6570\u636e\u5e93<\/td><\/tr>
-L<\/td>\u5217\u51fa\u4f4d\u4e8e\u8bc1\u4e66\u6570\u636e\u5e93\u6587\u4ef6\u4e2d\u7684\u73b0\u6709CRL<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u4f7f\u7528crlutil\u547d\u4ee4\u751f\u6210\u8bc1\u4e66\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# certutil -R -k rsa -g 1024 -s \"CN=John Smith,O=Example Corp,L=Mountain View,ST=California,C=US\" -d sql:$HOME\/nssdb -p 650-555-0123 -a -o cert.cer<\/pre>\n\n\n\n

\u521b\u5efa\u4e00\u4e2a\u65b0\u7684CRL\u5e76\u5c06\u5176\u5bfc\u5165\u5230\u6307\u5b9a\u76ee\u5f55\u4e2d\u7684\u6570\u636e\u5e93\u4e2d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# crlutil -G -d certdir -n cert-nickname -c crl-script-file<\/pre>\n\n\n\n

\u5728\u6570\u636e\u5e93\u4e2d\u5217\u51faCRL\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# crlutil -L -d certdir<\/pre>\n","protected":false},"excerpt":{"rendered":"

crlutil\u547d\u4ee4\u5217\u51fa\u3001\u751f\u6210\u3001\u4fee\u6539\u6216\u5220\u9664NSS\u5b89\u5168\u6570\u636e\u5e93\u6587\u4ef6\u4e2d\u7684CRL\uff0c\u5e76\u5217\u51fa\u3001\u521b\u5efa\u3001\u4fee\u6539\u6216\u5220\u9664\u7279\u5b9aCRL\u4e2d\u7684 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7071"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7071"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7071\/revisions"}],"predecessor-version":[{"id":7193,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7071\/revisions\/7193"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}