{"id":135,"date":"2011-09-27T10:06:21","date_gmt":"2011-09-27T02:06:21","guid":{"rendered":"http:\/\/karyleong.net\/?p=135"},"modified":"2011-09-27T10:06:21","modified_gmt":"2011-09-27T02:06:21","slug":"self-sign-multiple-domain-cert","status":"publish","type":"post","link":"https:\/\/karyleong.net\/?p=135","title":{"rendered":"Self Sign Multiple Domain Cert"},"content":{"rendered":"<p>1. create the CA cert<\/p>\n<p>openssl genrsa -des3 -out ca.key 4096<br \/>\nopenssl req -new -x509 -days 365 -key ca.key -out ca.crt<\/p>\n<p>2. create client req csr<\/p>\n<p>openssl genrsa -des3 -out server.key 2048<\/p>\n<p>*edit the openssl.conf<\/p>\n<blockquote><p>uncomment &#8220;req_extensions = v3_req&#8221;<\/p>\n<p>in\u00a0[ v3_req ] add<\/p>\n<p>subjectAltName = @alt_names<\/p>\n<p>add the end of the file<\/p>\n<pre>[ alt_names ]\r\nDNS.1 = test.domain.com\r\nDNS.2 = www1.domain.com<\/pre>\n<\/blockquote>\n<p>openssl req -new -key server.key -out server.csr<\/p>\n<p>*create a config file &#8220;server.conf&#8221;<\/p>\n<blockquote><p>subjectAltName = @alt_names<\/p>\n<p><span class=\"Apple-style-span\" style=\"font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;\">[ alt_names ]<\/span><\/p>\n<pre>DNS.1 = test.domain.com\r\nDNS.2 = www1.domain.com<\/pre>\n<\/blockquote>\n<pre>openssl x509 -req -days 365 -in server.csr -CA ca.crt \u00a0-CAkey ca.key -set_serial 01 -extfile server.conf -out server.crt<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. create the CA cert openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 365 -key ca.key -out ca.crt 2. create client req csr openssl genrsa -des3 -out server.key 2048 *edit the openssl.conf uncomment &#8220;req_extensions = v3_req&#8221; in\u00a0[ v3_req ] add subjectAltName = @alt_names add the end of the file [ alt_names ] &#8230; <a title=\"Self Sign Multiple Domain Cert\" class=\"read-more\" href=\"https:\/\/karyleong.net\/?p=135\" aria-label=\"More on Self Sign Multiple Domain Cert\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/135"}],"collection":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135"}],"version-history":[{"count":2,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}