Sanniv Khare 10 min read

Chrome drops P-256 CAs: will your app’s certificate pins break?

Chrome drops P-256 CAs: will your app's certificate pins break?

Chrome will stop trusting certificate authority keys that use ECDSA P-256 on 15 March 2027. iOS and Android apps are not part of that policy, but the servers they talk to are: every host whose chain runs through a P-256 CA will get a new certificate from a different CA before that date. If your app pins the old intermediate or root, it stops connecting the day the server swaps, with no warning in Chrome or anywhere else.

The takeaway: search your project for pins today, and add a backup pin for a key that will still be in the chain after the swap. We walked the live TLS chains of 18 API hosts that mobile apps commonly call on 5 Dec 2026, from our M1 lab Mac (macOS 15.7.3, Swift 6.2.3, Security.framework). Seven of them chain through a P-256 CA: Firestore, Firebase Installations and FCM (Google Trust Services WE2), Cloudflare and OneSignal (WE1), RevenueCat (Amazon ECDSA 256 M01) and the GitHub API (Sectigo E36).

Why we did this: the Beacon-type banking apps we build pin certificates, and a silent chain swap on an upstream API is exactly the outage they would ship to users.

What Chrome announced, and what it does not say

On 3 Dec 2026 the Chrome Security Team wrote that “as of March 15, 2027, Chrome intends to stop trusting Certification Authority (CA) keys using ECDSA P-256”. Sites whose chain includes a P-256 CA key will show a full-page interstitial after that date. Google says it has contacted every CA using affected keys, and asks site operators to get a replacement from a CA that does not use a P-256 key, “ideally one that is CNSA 1.0 compliant”.

The post does not name a Chrome version, does not mention Android or Apple platforms, and does not say anything about P-384, RSA or leaf keys. BleepingComputer’s report adds that Bruce Schneier relayed an unverified claim that P-256 had been broken, while saying himself that he does not know the technical details. We are not repeating that claim. The practical point stands without it: a browser deadline makes every CA with a P-256 key reissue, and app pins follow server chains, not browser policy.

Apple platforms and Android keep their own trust stores. Nothing in this post suggests URLSession or OkHttp will reject a P-256 CA in March. The risk is the pin, not the platform.

What 18 API hosts served on 5 Dec 2026

We wrote a short Swift script that opens a HEAD request to each host with URLSession, captures the SecTrust in the authentication challenge, and prints every certificate in the evaluated chain: its position, key type and size, expiry, and the SPKI SHA-256 hash that NSPinnedDomains, TrustKit, OkHttp and Android’s network_security_config all pin. The hash is built the way Apple’s identity pinning article describes: SHA-256 over the DER SubjectPublicKeyInfo, Base64 encoded. As a check, the ISRG Root X1 hash it printed, C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M=, matches the value published for that root.

Terminal output of the chain scan: 7 of 18 hosts chain through a P-256 CA

A trimmed view of the scan from our M1 lab Mac; the full output has every pin.

Host CA (intermediate) Root in the built chain P-256 CA?
firestore.googleapis.com WE2, P-256 GTS Root R4, P-384 Yes
firebaseinstallations.googleapis.com WE2, P-256 GTS Root R4, P-384 Yes
fcm.googleapis.com WE2, P-256 GTS Root R4, P-384 Yes
api.onesignal.com WE1, P-256 GTS Root R4, P-384 Yes
cloudflare.com WE1, P-256 GTS Root R4, P-384 Yes
api.revenuecat.com Amazon ECDSA 256 M01 Amazon Root CA 3, P-256 Yes, root too
api.github.com Sectigo DV E36, P-256 Sectigo Root E46, P-384 Yes
graph.facebook.com DigiCert G2 TLS RSA DigiCert Global Root G2 No (P-256 leaf only)
api.stripe.com DigiCert G2 RSA4096 2026 CA2 DigiCert TLS RSA4096 Root G5 No
api.razorpay.com RapidSSL TLS RSA CA G1 DigiCert Global Root G2 No
sentry.io DigiCert G2 TLS RSA DigiCert Global Root G2 No
api.mixpanel.com WR3, RSA GTS Root R1 No
api.segment.io, cognito-idp, s3 Amazon RSA 2048 M01/M04 Amazon Root CA 1 No
ideaxecution.com, bmdb.fun, cardigami.app YR1, RSA ISRG Root X1 No

Three things stand out.

  • Google’s ECDSA path is everywhere in mobile. Firebase and FCM endpoints sit on WE2, and cloudflare.com itself and OneSignal sit on WE1. Google Trust Services also runs an RSA path (WR3 under GTS Root R1, which Mixpanel uses), so the hierarchy a host moves to is not something you can guess from the outside.
  • Pinning the root does not always save you. For the GTS and Sectigo chains the root is P-384, so a root pin survives if the new intermediate chains to the same root. RevenueCat’s chain ends at Amazon Root CA 3, which is itself P-256: a root pin there is as exposed as the intermediate pin.
  • A P-256 leaf is not the issue. Facebook’s Graph API serves a P-256 leaf under an RSA CA. Chrome’s announcement is about CA keys, and Google only “recommends” moving server keys off P-256.

A scan is a snapshot. The chain a host serves depends on the edge you reach and can change on any certificate renewal, which is the whole problem pinning has.

Find the pins your app already has

Pins hide in four places: Info.plist (NSPinnedCAIdentities and NSPinnedLeafIdentities under NSPinnedDomains), a TrustKit configuration in Swift or Objective-C, res/xml/network_security_config.xml, and CertificatePinner.Builder().add(...) calls in Kotlin or Java. React Native apps often carry them in a JS config passed to a pinning library, so include .js and .ts files.

Every one of those stores the same thing, a 44-character Base64 SHA-256 ending in =. This script lists every such string in a source tree and marks the ones that match a list of P-256 CA hashes taken from the scan above:

#!/usr/bin/env bash
# List every SPKI pin in an iOS/Android source tree and mark the ones
# that belong to a P-256 CA (from a "hash name" list).
root="${1:-.}"; list="${2:-p256-ca-pins.txt}"
grep -rnoE '[A-Za-z0-9+/]{43}=' "$root" \
  --include='*.plist' --include='*.xml' --include='*.kt' \
  --include='*.java' --include='*.swift' --include='*.m' \
  --include='*.json' --include='*.ts' --include='*.js' |
while IFS=: read -r file line pin; do
  name=$(grep -F "$pin" "$list" | cut -d' ' -f2-)
  printf '%-4s %s:%s\n' "${name:+P256}" "${file#"$root"/}" "$line"
  [ -n "$name" ] && printf '     %s (%s)\n' "$pin" "$name"
done

The hash list, one hash name pair per line, from our 5 Dec scan:

vh78KSg1Ry4NaqGDV10w/cTb9VH3BQUZoCWNa93W/EY= WE2
kIdp6NNEd8wsugYyyIYFsi1ylMCED3hZbSR8ZFsa/A4= WE1
Qn2rVbyC3wQTe4rKJB9XU1WaCtwtBNpusM7f5eHjj9M= Amazon ECDSA 256 M01
NqvDJlas/GRcYbcWE8S/IceH9cq77kg0jVhZeAPXq8k= Amazon Root CA 3
ZSagvDzjltLkewXEBuDxIzpW/dpVw1Juvvmd0hhkzdY= Sectigo DV E36

We ran it on a small sample project we set up for this post, with one pin in each place: an Info.plist pinning WE2 for Firestore, a network_security_config.xml pinning Sectigo E36 for the GitHub API, and an OkHttp CertificatePinner with RevenueCat’s Amazon intermediate plus Razorpay’s RSA intermediate.

Terminal output of findpins.sh marking three P-256 CA pins in a sample project

Three of the four pins are flagged; the RapidSSL pin is listed without a mark.

Unmarked hashes still deserve a look: they may be leaf pins, which break on every key rotation regardless of curve, or pins for hosts we did not scan. Run the Swift script against your own API hosts (it takes host names as arguments) and add their CA hashes to the list.

Add backup pins before the server swaps

Both platforms say the same thing about pins: a chain is accepted if it contains at least one pinned key. Android’s network security configuration guide says to “always include a backup key”, and Apple’s article warns that if the server changes keys, the app refuses to connect until you ship an update. So the fix is to ship a second pin now, while the old chain is still served, for a key that will be in the new chain.

network_security_config.xml with the current Sectigo E36 pin plus a Sectigo Root E46 backup pin and an expiration date

The current pin stays; the P-384 root is the backup; the expiry date limits how long a stale pin can lock users out.

The same change on iOS, in Info.plist:

<key>NSPinnedDomains</key>
<dict>
  <key>firestore.googleapis.com</key>
  <dict>
    <key>NSPinnedCAIdentities</key>
    <array>
      <!-- current: WE2 (P-256 intermediate) -->
      <dict>
        <key>SPKI-SHA256-BASE64</key>
        <string>vh78KSg1Ry4NaqGDV10w/cTb9VH3BQUZoCWNa93W/EY=</string>
      </dict>
      <!-- backup: GTS Root R4 (P-384 root) -->
      <dict>
        <key>SPKI-SHA256-BASE64</key>
        <string>mEflZT5enoR1FuXLgYYGqnVEoZvmf9c2bVBpiOjYQ0c=</string>
      </dict>
    </array>
  </dict>
</dict>

And in OkHttp, where add can be called several times for one host:

val pinner = CertificatePinner.Builder()
    // current: Amazon ECDSA 256 M01 (P-256)
    .add("api.revenuecat.com", "sha256/Qn2rVbyC3wQTe4rKJB9XU1WaCtwtBNpusM7f5eHjj9M=")
    // backup: the CA RevenueCat names for its next chain
    .add("api.revenuecat.com", "sha256/<hash of the new CA>")
    .build()

Choosing the backup is the hard part, because nobody outside the provider knows which CA a host will move to:

  1. Ask the provider. A payment or banking API that expects clients to pin usually publishes its CA plan; take the hash from there.
  2. Pin a non-P-256 root you already see. GTS Root R4 and Sectigo Root E46 are P-384 in our scan. That works only if the new intermediate chains to the same root, so treat it as a likely backup, not a guarantee.
  3. Do not use a P-256 root as the backup. For RevenueCat, Amazon Root CA 3 is P-256 and carries the same exposure as the intermediate.
  4. Question the pin itself. Pinning a third-party SDK’s host that you do not control (Firebase, FCM, OneSignal) ties your release cycle to their certificate operations. For hosts you do control, pin a key you hold, such as a second leaf key you generate now and keep offline.

On Android, pin-set expiration turns pinning off after a date, so an old build in the field falls back to normal certificate validation instead of failing. The documentation is clear that an expiry also weakens the protection, so pick a date you will revisit.

A pre-swap checklist

  • Run the chain probe against every host your app pins, and keep the output with the release that ships the pins.
  • Run the pin finder over the iOS, Android and JavaScript sources, including vendored SDKs.
  • For each flagged pin, add a backup from the provider’s plan or a non-P-256 root, then ship it well before the provider rotates.
  • Check that your app has a recovery path for a pin failure: a clear error and a forced update prompt, as Apple’s article suggests.
  • Re-run the scan monthly until 15 March 2027; the swap date is the provider’s, not Chrome’s.

If your app also stores keys on the device, our post on P-256 in Apple apps covers the Secure Enclave and CryptoKit side, which this CA change does not touch. For the key-exchange half of TLS, see what URLSession and Conscrypt and OkHttp now negotiate.

Made by the team behind this post

Apps from our studio

  • Goes with this post

    Cardigami

    Pop-up greeting cards that rise out of the fold on iPhone Duo.

    iPhone · App Store

    Get
  • Goes with this post

    BMDB.fun

    Your Bollywood world at a glance, with links straight to the OTT app that streams each film.

    Android TV · Web · Mobile

    Get
  • Nix

    The Mac uninstaller that finds what the Trash leaves behind: caches, logs, derived data and saved states.

    macOS

    Get
  • OneClick QuitAll

    Quit every running app in one click. See memory and CPU first.

    macOS · Mac App Store

    Get

Need this built? Let’s talk.

We build and run apps for Mac, TV, mobile and the web, and write about what we learn.