Skip to main content

    Code Signing vs SSL/TLS Certificates: What Actually Differs in 2026

    Both are X.509 certificates from a public CA, and neither can do the other's job. What differs in 2026: key storage, validity, expiry and revocation.

    MS
    My-SSL
    ·
    15 min read
    ·
    Published August 8, 2026
    ·
    Last updated November 5, 2026

    In short

    An SSL/TLS certificate proves a server owns a domain during a live connection. A code signing certificate proves who published a file after it has been downloaded. Both are X.509 certificates, but the CA/Browser Forum's rules forbid a public TLS certificate from carrying the code signing purpose and a code signing certificate from carrying the server purpose, so neither can stand in for the other. As of November 2026 a TLS certificate lasts at most 200 days, a code signing certificate 460, and only the code signing key must live in certified hardware.

    If you have already worked out which one you need, the code signing certificate options cover validation tiers, cloud key delivery and prices in one place. (My-SSL sells Certum certificates, including the code signing and TLS certificates discussed here.) If you are here because a signature made with a certificate you already own fails to verify, start with the test below.

    SSL/TLS certificate compared with a code signing certificate on five pointsA table with two columns, SSL/TLS certificate and code signing certificate. What it proves: the server owns the domain, versus who published the file. Extended Key Usage, highlighted in gold: serverAuth with codeSigning forbidden, versus codeSigning with serverAuth forbidden. Private key: usually a file on the server, versus certified hardware only. Maximum validity as of November 2026: 200 days versus 460 days. After expiry: browsers refuse the site, versus timestamped files still verify.Code signing vs SSL/TLS certificateBoth are X.509. The rules forbid either one from doing the other's job.SSL/TLSCode signingProvesthe server owns the domainwho published the fileEKUserverAuth; codeSigning forbiddencodeSigning; serverAuth forbiddenPrivate keyusually a file on the servercertified hardware onlyMax validity200 days460 daysAfter expirybrowsers refuse the sitetimestamped files still verifyCA/Browser Forum limits as of November 2026 · my-ssl.com
    The gold row is the one that settles the "can I reuse my SSL certificate" question: each rulebook bans the other certificate's purpose outright.

    The question usually arrives sideways. A developer tries to sign an installer with the company wildcard certificate, the signature does not verify, and someone asks whether a second certificate is really needed for a domain that is already paid for. It is, and the reason is written into both CA/Browser Forum rulebooks.

    Many comparisons of these two products stop at purpose, storage location and validation, and several still quote validity periods of one to three years. Three rule changes have since pulled the two apart: hardware key storage became mandatory for all code signing on June 1, 2023, code signing validity fell to 460 days on March 1, 2026, and TLS validity fell to 200 days on March 15, 2026. What follows is the comparison as it stands today, including a test of what happens when you use one certificate for the other's job.

    What each certificate actually does

    An SSL/TLS certificate binds a public key to a domain name so a browser can confirm it reached the right server and negotiate an encrypted channel. A code signing certificate binds a public key to a verified organization or individual so an operating system can confirm who produced a file and that nobody altered it since. One authenticates an endpoint in a conversation. The other authenticates the origin of an artifact.

    That difference in subject matter drives everything else. A TLS certificate is presented fresh at every handshake, to a client that is online at that moment. A code signature is embedded in the file, so the verifier might be an offline laptop in a factory running an installer pulled off a share three years ago. Nothing about that machine's situation lets it consult you.

    Encryption is where the naming gets misleading. A TLS certificate is part of a key exchange that produces an encrypted tunnel. Code signing encrypts nothing at all. It hashes the file and signs the hash, which is why a signed installer is still perfectly readable in a hex editor. If you want the underlying mechanics, our guide to what a digital signature is walks through the hash-then-sign step in detail.

    What the two have in common

    Both are X.509 certificates. Both bind a public key to a name whose private half only the owner should be able to use. Both are issued by a CA that has been audited into a public root program, both chain up through intermediates to a root the verifier already trusts, and both can be revoked through CRL or OCSP. If you understand how an X.509 certificate is structured, you already understand most of a code signing certificate.

    The trust stores are where the shared ancestry ends. Which roots a browser accepts for TLS is decided by the browser and OS root programs. Which roots Windows accepts for an Authenticode signature is decided separately, by the Microsoft Trusted Root Program, whose requirements also make CAs issue server authentication and code signing certificates from separate intermediate CAs. A CA can be trusted for one and not the other, which is why "is this CA trusted?" is an incomplete question until you say trusted for what.

    As of November 2026SSL/TLS certificateCode signing certificate
    What it authenticatesA domain name, liveAn organization or person, after the fact
    Cheapest validation tierDomain validation, automatable with ACMEOrganization or individual identity check. There is no DV tier
    Extended Key UsageserverAuth; codeSigning forbiddencodeSigning; serverAuth forbidden
    Where the private key may liveA file on the serverCertified hardware only, since June 1, 2023
    Maximum validity200 days460 days
    RenewalFully automatable with ACMEManual: a new order with the CA, no ACME
    The day it expiresThe site stops loadingNothing, if signatures were timestamped
    What revocation affectsFuture connectionsPast signatures, via a backdated effective date

    Can an SSL certificate sign software?

    An SSL/TLS certificate cannot sign software in a way any verifier will accept, and the block sits in both CA/Browser Forum rulebooks. The TLS Baseline Requirements (§7.1.2.7.10) say a public TLS certificate MUST carry id-kp-serverAuth (1.3.6.1.5.5.7.3.1) and MUST NOT carry id-kp-codeSigning (1.3.6.1.5.5.7.3.3). The Code Signing Baseline Requirements (§7.1.2.3) say the reverse: id-kp-codeSigning MUST be present, and id-kp-serverAuth and anyExtendedKeyUsage MUST NOT be.

    How the Extended Key Usage extension decides whether a certificate can serve TLS or sign codeA single box at the top represents the Extended Key Usage extension defined in RFC 5280. Two branches lead from it. The left branch, in gold, is the object identifier 1.3.6.1.5.5.7.3.1, named id-kp-serverAuth; below it, a browser accepts the certificate for a TLS handshake while a code signature verifier rejects any signature made with it. The right branch, also in gold, is the object identifier 1.3.6.1.5.5.7.3.3, named id-kp-codeSigning; below it, Windows accepts the signature it produces while a browser rejects it for TLS. A closing note states that publicly trusted CAs issue these from separate hierarchies, so one certificate does not carry both.One field decides which job a certificate is allowed to doExtended Key Usagean extension carried by every publicly trusted certificate1.3.6.1.5.5.7.3.1id-kp-serverAuth1.3.6.1.5.5.7.3.3id-kp-codeSigningA browser accepts it for a handshakea code signature made with it fails to verifyWindows accepts the signature it makesa browser rejects it for TLSPublicly trusted CAs issue these from separate hierarchies, so one certificate does not carry both.
    Worth checking before you buy anything: open a certificate you already own, look at Extended Key Usage, and you will know in two seconds what it is permitted to do.

    RFC 5280 explains why the field is decisive. When a certificate carries an Extended Key Usage extension, it may only be used for one of the purposes listed, and software is allowed to insist on a particular purpose before accepting the certificate. A code signature verifier looks for the code signing purpose and a TLS client looks for the server purpose, as the test below shows. Neither refusal is a licensing restriction or a bug.

    The TLS side narrowed further in 2026. Citing the Chrome Root Program Policy, Certum stopped issuing public SSL/TLS certificates with the client authentication purpose on May 15, 2026, so a Certum TLS certificate issued since then carries the server purpose and nothing else.

    What happens when you try: a test

    Using a TLS certificate to sign code does not fail at signing time; it fails at verification. We ran the swap both ways on November 5, 2026 with OpenSSL 3.0.13 and osslsigncode 2.8 on Linux, using a private test CA that issued one certificate with the server purpose and one with the code signing purpose. The signing tool produced a signature with the TLS certificate without complaint, and verification then rejected it.

    # Authenticode-sign a PowerShell script with the TLS certificate
    $ osslsigncode sign -certs tls.pem -key tls.key -h sha256 -in hello.ps1 -out hello-tls.ps1
    Succeeded
    $ osslsigncode verify -CAfile ca.pem -in hello-tls.ps1
    Unsupported Signer's certificate purpose XKU_CODE_SIGN
    Signature verification: failed
    
    # The same script signed with the code signing certificate
    $ osslsigncode verify -CAfile ca.pem -in hello-cs.ps1
    Signature verification: ok

    The reverse swap fails the same way. With the code signing certificate installed on a TLS server, the client stopped the handshake with error 26, "unsuitable certificate purpose". The same server with the TLS certificate verified cleanly.

    # Private test CA, one TLS leaf (EKU serverAuth), one code signing leaf (EKU codeSigning)
    $ openssl verify -CAfile ca.pem -purpose sslserver tls.pem
    tls.pem: OK
    $ openssl verify -CAfile ca.pem -purpose sslserver cs.pem
    CN = Example Publisher
    error 26 at 0 depth lookup: unsuitable certificate purpose
    error cs.pem: verification failed
    
    # A TLS server presenting the code signing certificate
    $ openssl s_client -connect localhost:44330 -CAfile ca.pem -verify_return_error
    depth=0 CN = Example Publisher
    verify error:num=26:unsuitable certificate purpose
    ...tls_post_process_server_certificate:certificate verify failed

    What we did not run: Microsoft SignTool and Windows' own verification, because the test host was Linux. osslsigncode rejected the signer for lacking the code signing purpose, the purpose every publicly trusted code signing certificate is required to carry. The practical lesson is that a successful signing step proves nothing. Run a signature verification before a build ships, because that is where a wrong certificate shows up.

    Is there an "SSL code signing certificate"?

    There is no publicly trusted certificate that does both jobs. The phrase "SSL code signing certificate" usually means a code signing certificate sold by a company that also sells SSL certificates, and the product itself is a code signing certificate with the code signing purpose only. A certificate carrying both purposes would break the TLS rules and the code signing rules at the same time.

    The key cannot be shared either. Section 9.6.3 of the code signing requirements makes the subscriber promise not to apply for a code signing certificate whose public key is or will be used with any other kind of certificate. So the same CSR cannot be sent to both products, and an organization that needs both buys two certificates with two keys, usually from the same CA on one account.

    Code signing vs certificate signing

    Code signing means signing software with a certificate issued to a publisher. Certificate signing means signing other certificates, which is what a certificate authority does. RFC 5280 marks that ability with the keyCertSign bit in the Key Usage extension, and a certificate with keyCertSign must also be flagged as a CA in its basic constraints. A code signing certificate is not a CA: the code signing requirements say its keyCertSign bit MUST NOT be set.

    The distinction matters when someone asks for a certificate "to sign certificates" for internal devices or a test lab. What they need is a CA certificate, usually from a private CA they run themselves. Our guide to self-signed certificates and private CAs covers that route. What a public CA sells you is a leaf certificate for one job: TLS, code signing, S/MIME or document signing.

    Where the private key is allowed to live

    Since June 1, 2023, every publicly trusted code signing private key must be generated, stored and used in a hardware crypto module certified to at least FIPS 140-2 Level 2 or Common Criteria EAL 4+, with RSA keys of 3,072 bits or more (or ECDSA keys, which the rules also allow). TLS private keys carry no such rule and are usually ordinary files on the server. This is the difference that reshapes a build pipeline.

    Where a TLS private key is allowed to live compared with a code signing private keyTwo panels. The left panel shows a TLS private key as an ordinary file on a web server: readable by root, copied to a second server, and included in backups, with no hardware requirement attached. The right panel, highlighted in gold, shows a code signing private key generated inside certified hardware meeting FIPS 140-2 Level 2 or Common Criteria EAL 4 plus. The key never leaves the device; a hash of the file goes in and a signature comes out. A closing note records that this has applied to standard OV code signing certificates as well as EV since June 1, 2023.Where each private key is allowed to liveTLS private keyno hardware rule applies/etc/ssl/private/example.keyA file. Readable by root.Copied to the second load balancer.Swept up in whatever backs up the box.Renewed by ACME without a human.Code signing private keyFIPS 140-2 Level 2 or CC EAL 4+ hardwareUSB token, on-prem HSM, or cloud HSMthe key is generated inside and never leavesA hash goes in. A signature comes out.Non-exportable, so there is no PFX to copy.For Windows: RSA, 3,072 to 4,096 bits.CI needs the device, or a service in front of it.This is not an EV-only ruleSince June 1, 2023 it applies to standard OV code signing certificates too
    The right-hand panel is the reason a code signing certificate cannot be dropped into a build pipeline the way a TLS certificate can. Plan the signing device before you plan the purchase.

    Before June 1, 2023, a buyer of a non-EV code signing certificate only had to promise the CA to keep the key in a TPM, a certified module or an uncertified USB token. Since then the CA itself has to confirm that the key sits in certified hardware. The key now lives on a token, on an HSM you run, or inside a CA-hosted signing service, and each of those decides how a build server reaches it.

    Key type differs too. The code signing rules allow ECDSA keys on P-256, P-384 or P-521 as well as RSA, but the Microsoft Trusted Root Program states that code signing does not support ECC or keys larger than 4,096 bits. For signing Windows software that leaves RSA at 3,072 to 4,096 bits, while a TLS certificate can use either an RSA or an ECDSA key.

    A token has to be shipped and plugged into the machine that signs, which is awkward for a build server. Cloud signing removes that constraint: the key stays in the CA's HSM and the build authenticates to it. Our comparison of cloud code signing versus a USB token sets out the trade-offs, and signing inside CI/CD covers the pipeline side.

    How long each one lasts in 2026

    As of November 2026, a publicly trusted TLS certificate may be valid for a maximum of 200 days, down from 398 on March 15, 2026 under CA/Browser Forum ballot SC081, with further cuts to 100 days in March 2027 and 47 days in March 2029. A code signing certificate issued on or after March 1, 2026 maxes out at 460 days, down from 39 months. The certificate you renew more often is now the website one.

    The reasoning behind the split explains the gap. TLS lifetimes can fall aggressively because ACME automates renewal end to end; a 47-day certificate is only viable because no human touches it. Code signing cannot follow that curve at the same speed. The key sits in hardware, the CA checks identity documents rather than a DNS record, and renewal cannot be handed to an ACME client the way a TLS renewal can.

    For planning purposes the two need opposite treatment. TLS renewal should be a job that runs without you, and if you are not there yet, our guide to preparing for shorter SSL lifetimes is the place to start. Code signing renewal should be a calendar entry with a lead time attached, because a new token or a re-validation is not something you complete on the afternoon it expires. The detail on that cut sits in the 460-day validity change.

    What happens when each one expires

    An expired TLS certificate takes the site down immediately. Browsers show a full interstitial, API clients throw, and there is no grace period to negotiate. An expired code signing certificate, by contrast, changes nothing at all for software that was signed with an RFC 3161 timestamp: the verifier compares the timestamp against the certificate's validity window rather than against today's date, so the signature keeps verifying after the certificate has expired.

    Why an expired TLS certificate takes a site down while an expired code signing certificate changes nothingTwo lifetimes drawn against one shared timeline. The upper row is an SSL/TLS certificate: a solid bar covering its valid window, capped at 200 days as of November 2026, followed by a dashed region marked expired, where every browser refuses the connection. The lower row is a code signing certificate: a solid bar covering its valid window, capped at 460 days, followed by a gold region showing that signatures made during that window still verify after it ends. A marker inside the valid window shows the moment you sign and timestamp a release. A third lane below shows the signed file itself in circulation, being downloaded, installed, and re-run for years after the certificate that signed it has expired.Both certificates expire. Only one of them stops mattering when it does.SSL/TLScertificatevalid: 200 days maxexpired: every browser refuses the connectionRe-checked live on every connection. There is no grace period and nothing to prepare.Code signingcertificateyou sign and timestamp herevalid: 460 days maxexpired: signatures still verifyThe verifier compares the timestamp to the certificate's window, not to today's date.Your signed filedownloaded, mirrored, installed and re-run for yearsissuedday 200day 460years laterMaximum validity figures are the CA/Browser Forum limits in force as of November 2026.
    The renewal pressure sits on the TLS certificate; the long tail of consequence sits on the code signing one. Confusing which is which is how teams end up automating the wrong renewal.

    Everything in that second sentence depends on the timestamp. Sign without one and the signature is only good while the certificate is. The day it expires, an installer that has been shipping for a year starts presenting as unsigned, and the fix is to re-sign and redistribute every affected binary. Timestamping costs one extra flag on the signing command and one request to a CA timestamp server, which is why timestamping every signature is worth doing on every build.

    One consequence catches teams during renewal. Because timestamped signatures survive expiry, letting a code signing certificate lapse does not break anything you have already shipped. It only stops you signing anything new. That makes the failure quiet: it shows up the next time a release has to be signed.

    What revocation reaches

    Revoking a TLS certificate affects future connections only. Revoking a code signing certificate can reach backwards. When the reason is key compromise or suspect code, the code signing requirements (§4.9.1) tell the CA to set a historic revocation date if appropriate, and signatures timestamped after that date stop being trusted by any verifier that checks revocation, including for copies already distributed. Microsoft's root program separately requires CAs to be able to revoke a certificate to a specific date when Microsoft asks.

    How a backdated revocation date decides which timestamped signatures surviveA timeline with five events. The certificate is issued. Version 1.0 is signed and timestamped. The private key is compromised, and this point, marked by a gold vertical line, becomes the revocation effective date. Version 1.1 is signed and timestamped after the compromise. The CA finally revokes the certificate, backdating the effective date to the compromise. Below the timeline, two bands show the outcome: signatures timestamped before the gold line remain trusted, while signatures timestamped after it stop being trusted even though they carry a valid timestamp.A backdated revocation date reaches software you already shippedrevocation effective datecertificateissuedv1.0 signedand timestampedprivate key compromisedv1.1 signedand timestampedCA revokesTimestamped before the linev1.0 keeps verifyingTimestamped after itv1.1 is no longer trusted, timestamp or notThe CA/Browser Forum requires revocation within 24 hours where a key is compromised or the signed code is suspect.A TLS certificate has no equivalent: revoking it affects future connections only.
    Timestamping makes an expiry harmless. It does not make a key compromise harmless.

    Backdating is a feature rather than an accident. If a key is compromised in June and the CA only learns of it in August, revoking with an August effective date would leave two months of attacker-produced signatures trusted forever, since they carry perfectly valid timestamps. Setting the effective date back to June invalidates those signatures. It also invalidates your own legitimate releases from the same period, which is the part worth planning for.

    Under the CA/Browser Forum's code signing requirements (§4.9.1.1) a CA must revoke within 24 hours once it has evidence of key compromise or reasonable assurance that the certificate signed suspect code, so the window between a credible report and a certificate you can no longer rely on is short. Keep a record of which releases were signed with which certificate and when. If revocation ever happens, that record is what tells you which builds need re-signing. The mechanics of CRL and OCSP themselves are covered in our guide to certificate revocation, and the steps after a revocation are in what to do when a code signing certificate is revoked.

    Which one do you need?

    Answer one question: does the thing you are protecting travel? If users reach it over a network connection to your server, you need a TLS certificate. If they download it, copy it, or run it, you need a code signing certificate. Anyone who both ships software and hosts a download page needs both, because the TLS certificate stops protecting the installer the moment the download completes.

    Two buying differences follow from that. TLS has a domain-validated tier that an ACME client completes with no paperwork; code signing has no such tier, so every purchase involves organization or individual validation and a hardware key. Budget the calendar time, not just the money. Our note on how long code signing validation takes gives realistic figures, and EV versus OV code signing covers the tier choice once you know you need one.

    Where My-SSL fits

    You distribute Windows applications, installers or drivers and want Windows to show your verified publisher nameStandard and EV code signing certificates
    You need the download page, the API and the update endpoint secured, with renewal that survives 200-day lifetimesSSL/TLS certificates

    If you are still working out whether signing is worth it for your distribution model at all, our page on whether you need a code signing certificate answers that before the tier question, and code signing certificates explained is the cluster's starting point.

    Frequently Asked Questions

    Quick answers to related questions.

    Can I use my SSL certificate to sign an .exe file?

    Not in any way a verifier will accept. A public TLS certificate carries id-kp-serverAuth (OID 1.3.6.1.5.5.7.3.1), and the CA/Browser Forum's TLS rules forbid it from also carrying id-kp-codeSigning (OID 1.3.6.1.5.5.7.3.3). A signing tool may still produce a signature: in our test osslsigncode signed a script with a TLS certificate without complaint, and verification then failed with "Unsupported Signer's certificate purpose". The key is a second obstacle: since June 1, 2023 a code signing private key must be generated and used inside certified hardware, while a TLS key is usually a file on a web server.

    Do I need both an SSL certificate and a code signing certificate?

    If you distribute software and also run a website, yes, and they cover genuinely different risks. The TLS certificate protects the download in transit and proves the visitor reached your server rather than someone else's. The code signing certificate travels inside the file and keeps proving who built it after the download finishes, which is the part that still matters when a user copies the installer to a USB stick, an IT department redistributes it internally, or someone runs it eighteen months later on a machine that has never heard of your domain.

    Why is a code signing certificate more expensive than an SSL certificate?

    Two costs stack up that a domain-validated TLS certificate avoids. There is no domain-validated tier for code signing, so every certificate requires the CA to verify the identity of an organization or an individual, which is human work. And the private key has to be generated and used in hardware certified to at least FIPS 140-2 Level 2 or Common Criteria EAL 4+, so the CA either ships a token or runs a cloud signing service around an HSM. A domain-validated TLS certificate needs neither: an ACME client proves control of the domain and the key can be an ordinary file.

    Does software stop working when a code signing certificate expires?

    Not if the signature carried a timestamp. Windows checks whether the certificate was valid at the moment recorded in the timestamp rather than against today's date, so a timestamped file keeps verifying after the certificate expires. Without a timestamp, Microsoft's documentation says the signature becomes invalid when the signing certificate expires and Windows treats the binary as unsigned. That is the largest behavioural difference from TLS, where an expired certificate stops browsers connecting to the site.

    Can revoking a code signing certificate break software customers already installed?

    It can, and that is deliberate. When a code signing certificate is revoked for key compromise or for signing suspect code, the CA/Browser Forum's code signing requirements tell the CA to set a historic revocation date where appropriate. Signatures timestamped before that date stay valid; signatures timestamped after it stop being trusted by any verifier that checks revocation, including on copies already installed. The same requirements give the CA 24 hours to revoke once it has evidence of key compromise or reasonable assurance that the certificate signed suspect code.

    Can I use the same key pair or CSR for both certificates?

    No. The CA/Browser Forum's code signing requirements make the subscriber promise not to apply for a code signing certificate if its public key is or will be used with any non-code-signing certificate, which includes a TLS certificate. In practice the question rarely arises, because the code signing key has to be generated inside a hardware module or a CA's signing service, and a TLS key on a web server cannot meet that rule. Generate one key for each job.

    Still Have Questions?

    Contact our support team with questions about certificates, installation, or technical issues.

    Buying the one you actually need

    My-SSL sells Certum code signing certificates: Standard for individual developers and organizations, EV for organizations. They are delivered through Certum's SimplySign cloud signing service, so the key stays in Certum's certified hardware and no USB token is shipped. Terms, prices and what validation needs are listed on the code signing certificates page. If it turns out a TLS certificate was what you needed all along, that is a different aisle of the same shop.

    Updated November 5, 2026: added the EKU rules from both CA/Browser Forum rulebooks, a signing and handshake test, the key reuse ban, Microsoft's RSA-only rule for code signing keys, and sections on "SSL code signing certificates" and certificate signing.