{"id":872,"date":"2013-12-03T22:11:32","date_gmt":"2013-12-03T21:11:32","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=872"},"modified":"2013-12-03T22:11:32","modified_gmt":"2013-12-03T21:11:32","slug":"create-self-signed-certificate-using-openssl","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=872","title":{"rendered":"Create self signed certificate using OpenSSL"},"content":{"rendered":"<p>You can create your own, self signed certificate for testing purposes using OpenSSL and two simple commands<!--more--><\/p>\n<pre>openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX<\/pre>\n<p>&#8230;where XXX stands for number of days the certificate is to be valid (i.e. XXX = 365)<br \/>\nHere you&#8217;ll be asked for Country, Location, Organization, Name and Email. You&#8217;ll also have to provide a password for your private key.<\/p>\n<pre>openssl pkcs12 -export -in cert.pem -inkey key.pem -out certificate.p12<\/pre>\n<p>This command creates .P12 file which you can use to digitally sign your emails, java code, etc.<br \/>\nYou will be asked for a password to your private key &#8211; the same you entered for the first command.<br \/>\nSubsequently you&#8217;ll be asked for an Export password &#8211; this password will be used once you want to export the certificate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can create your own, self signed certificate for testing purposes using OpenSSL and two simple commands<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Create self signed P12 certificate","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[39,45,5],"tags":[28,237,238,236],"class_list":["post-872","post","type-post","status-publish","format-standard","hentry","category-infrastructure","category-linux","category-tools","tag-certificates","tag-openssl","tag-p12","tag-pkcs"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-e4","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=872"}],"version-history":[{"count":1,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/872\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/872\/revisions\/873"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}