{"id":9191,"date":"2023-02-08T22:16:01","date_gmt":"2023-02-08T21:16:01","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9191"},"modified":"2024-07-23T23:02:30","modified_gmt":"2024-07-23T21:02:30","slug":"openssl-show-all-certificates-of-a-certificate-bundle-file","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/openssl-show-all-certificates-of-a-certificate-bundle-file\/","title":{"rendered":"openssl: Show all certificates of a certificate bundle file"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9191 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_9191')){$('.twoclick_social_bookmarks_post_9191').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"openssl%3A%20Show%20all%20certificates%20of%20a%20certificate%20bundle%20file\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athe%20x509%20option%20of%20openssl%20does%20only%20use%20the%20first%20certificate%20in%20a%20file.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/openssl-show-all-certificates-of-a-certificate-bundle-file\\\/\",\"post_id\":9191,\"post_title_referrer_track\":\"openssl%3A+Show+all+certificates+of+a+certificate+bundle+file\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>the x509 option of openssl does only use the first certificate in a file.<br \/>\n<!--more--><\/p>\n<p>To show all certificates in a bundle file use the crl2pkcs7 option. This is usually used to pack a crl and a bundle of certificates in a pkcs7 container but the crl can be omitted and a list of certificates in a pkcs7 container is created. This list could be shown with the pkcs7 option.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # openssl crl2pkcs7 -nocrl -certfile myCertificateBundle.pem | openssl pkcs7 -print_certs -text -noout\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, the x509 option of openssl does only use the first certificate in a file.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1036,466],"tags":[1956,1954,1955],"class_list":["post-9191","post","type-post","status-publish","format-standard","hentry","category-openssl","category-security","tag-certificate-bundle","tag-ooenssl","tag-show-certificates"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=9191"}],"version-history":[{"count":2,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9191\/revisions"}],"predecessor-version":[{"id":9193,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9191\/revisions\/9193"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}