{"id":74,"date":"2009-08-06T00:09:00","date_gmt":"2009-08-06T05:09:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=74"},"modified":"2010-02-10T23:17:59","modified_gmt":"2010-02-11T04:17:59","slug":"openssl-fu","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2009\/08\/06\/openssl-fu\/","title":{"rendered":"OpenSSL-fu"},"content":{"rendered":"<p>If you want to find out the components of a site&#8217;s certificate the following commands will help you.<br \/>If you want to find if the certificate is signed with the weak MD5 signature algorithm:<br \/><span style=\"font-family: courier new;\">$ echo | openssl s_client -connect webserver.example.com:443 2>\/dev\/null | sed -ne &#8216;\/&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;\/,\/&#8212;&#8211;END CERTIFICATE&#8212;&#8211;\/p&#8217; |  openssl x509 -text | grep &#8220;Signature Algorithm&#8221;| gawk &#8216;{print $3}&#8217;<\/p>\n<p>$ echo | openssl s_client -connect 167.155.38.24:443 2>\/dev\/null | sed -ne &#8216;\/&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;\/,\/&#8212;&#8211;END CERTIFICATE&#8212;&#8211;\/p&#8217; |  openssl x509 -text | grep &#8220;Exponent&#8221;<br \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to find out the components of a site&#8217;s certificate the following commands will help you.If you want to find if the certificate is signed with the weak MD5 signature algorithm:$ echo | openssl s_client -connect webserver.example.com:443 2>\/dev\/null | sed -ne &#8216;\/&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;\/,\/&#8212;&#8211;END CERTIFICATE&#8212;&#8211;\/p&#8217; | openssl x509 -text | grep &#8220;Signature Algorithm&#8221;| gawk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197],"tags":[216,218,215,217],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-tools","tag-certificates","tag-md5","tag-openssl","tag-sha1"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}