{"id":551,"date":"2016-12-15T09:45:07","date_gmt":"2016-12-15T09:45:07","guid":{"rendered":"7f24d240521d99071c93af3917215ef7"},"modified":"2016-12-15T09:45:07","modified_gmt":"2016-12-15T09:45:07","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/551","title":{"rendered":"openssl cert request"},"content":{"rendered":"<p>openssl req -newkey rsa:2048 -keyout name.key -out name.csr<br \/>\nopenssl rsa -in name.key -out name.rsa<\/p>\n<p>\nopenssl pkcs12 -export -in name.crt -out name.p12 -inkey name.key<br \/>\nopenssl pkcs12 -in name.pfx -out name.crt<\/p>\n<p>&nbsp;<\/p>\n<p><b>Convert your files into PEM format<\/b><\/p>\n<p>The private key: if it not in PEM format, use the following command line to convert it:<br \/>\nopenssl rsa -in private-key-name -outform PEM<\/p>\n<p>Your certificate: if it not in PEM format, use the following command line to convert it:<br \/>\nopenssl x509 -inform PEM -in your-certificate<\/p>\n<p>The certification chain: if it not in PEM format, use the following command line to convert it:<br \/>\nopenssl x509 -inform PEM -in certification-chain-file-name<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>openssl req -newkey rsa:2048 -keyout name.key -out name.csr<br \/>\nopenssl rsa -in name.key -out name.rsa<\/p>\n<p>\nopenssl pkcs12 -export -in name.crt -out name.p12 -inkey name.key<br \/>\nopenssl pkcs12 -in name.pfx -out name.crt<\/p>\n<p>&nbsp;<\/p>\n<p><b>Convert your files into PEM format<\/b><\/p>\n<p>The private key: if it not in PEM format, use the following command line to convert it:<br \/>\nopenssl rsa -in private-key-name -outform PEM<\/p>\n<p>Your certificate: if it not in PEM format, use the following command line to convert it:<br \/>\nopenssl x509 -inform PEM -in your-certificate<\/p>\n<p>The certification chain: if it not in PEM format, use the following command ... <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/551\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[291],"tags":[78],"class_list":["post-551","post","type-post","status-publish","format-standard","hentry","category-network","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=551"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}