{"id":42062,"date":"2024-02-07T14:38:10","date_gmt":"2024-02-07T19:38:10","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=42062"},"modified":"2024-02-07T14:38:10","modified_gmt":"2024-02-07T19:38:10","slug":"inside-code-signing-certificates","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/02\/07\/inside-code-signing-certificates\/","title":{"rendered":"Inside Code Signing: Certificates"},"content":{"rendered":"<p><a href=\"https:\/\/developer.apple.com\/documentation\/technotes\/tn3161-inside-code-signing-certificates\">TN3161<\/a> (via <a href=\"https:\/\/toot.community\/@justkwin\/111885748959015479\">Quinn<\/a>):<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/documentation\/technotes\/tn3161-inside-code-signing-certificates\">\n<p>To condense this into plain English, this certificate says that &ldquo;Apple certifies that this developer is associated with this public key, and the matching private key can be used to sign Mac code.&rdquo;  This is clearly a simplification&mdash;it doesn&rsquo;t touch on the valid date range, serial number, or even how Apple identified the developer in the first place&mdash;but it&rsquo;s a reasonable model to start out with.<\/p><p>Apple issues a variety of different code-signing certificate types.  For a complete list, see <a href=\"https:\/\/developer.apple.com\/help\/account\/reference\/certificate-types\">Certificate types<\/a>.<\/p>\n<p>[&#8230;]<\/p>\n<p>Certificates often form a chain of trust: the verifier uses the issuer information in a certificate to find the issuer&rsquo;s certificate, then uses its issuer information to find the next certificate in the chain, and so on, until it hits an anchor, that is, a certificate it trusts as a matter of policy.<\/p>\n<p>[&#8230;]<\/p>\n<p>To sign code you need a certificate and the private key that matches the public key in that certificate. This combination is called a digital identity or, if it&rsquo;s for signing code, a code-signing identity.<\/p>\n<p>[&#8230;]<\/p>\n<p>It&rsquo;s easy to miss that your most critical code-signing asset, your private key, is tucked away in your login keychain. And if you do miss that, you might lose your private key, for example, when you migrate to a new Mac.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/05\/07\/inside-code-signing-technotes\/\">Inside Code Signing Technotes<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/10\/10\/the-care-and-feeding-of-developer-id\/\">The Care and Feeding of Developer ID<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>TN3161 (via Quinn): To condense this into plain English, this certificate says that &ldquo;Apple certifies that this developer is associated with this public key, and the matching private key can be used to sign Mac code.&rdquo; This is clearly a simplification&mdash;it doesn&rsquo;t touch on the valid date range, serial number, or even how Apple identified [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-02-07T19:38:12Z","apple_news_api_id":"eaea1140-5a3d-4938-adcc-6e1879fc3eb2","apple_news_api_modified_at":"2024-02-07T19:38:12Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/A6uoRQFo9STitzG4Yefw-sg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[466,31,2321,1583,30,2385,179,71],"class_list":["post-42062","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-codesigning","tag-ios","tag-ios-17","tag-keychain","tag-mac","tag-macos-14-sonoma","tag-openssl","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=42062"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42062\/revisions"}],"predecessor-version":[{"id":42063,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/42062\/revisions\/42063"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=42062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=42062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=42062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}