{"id":259,"date":"2012-12-20T16:45:39","date_gmt":"2012-12-20T16:45:39","guid":{"rendered":"http:\/\/vickistan.com\/?p=259"},"modified":"2025-11-10T20:25:55","modified_gmt":"2025-11-10T20:25:55","slug":"checking-whether-a-key-and-cert-match-using-openssl","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=259","title":{"rendered":"Dealing with Openssl Certificates and Keys"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em><strong># Get the details of a PEM cert:<\/strong><\/em><br \/>openssl x509 -in &lt;certname>.pem -text<br \/><br \/># <em><strong>Get the details of a crt file:<\/strong><\/em><br \/><code>openssl x509 -in your_certificate.crt -text -noout<br \/><\/code><br \/><em><strong># Check whether a key and cert match using openssl:<\/strong><\/em><br \/>openssl rsa -noout -modulus -in server.key | openssl md5<br \/>openssl x509 -noout -modulus -in server.crt | openssl md5<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p># Get the details of a PEM cert:openssl x509 -in &lt;certname>.pem -text # Get the details of a crt file:openssl x509 -in your_certificate.crt -text -noout# Check whether a key and cert match using openssl:openssl rsa -noout -modulus -in server.key | &hellip; <a href=\"https:\/\/vickistan.com\/?p=259\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-259","post","type-post","status-publish","format-standard","hentry","category-linux","category-openssl-and-tls"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":4,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":981,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions\/981"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}