Check Certificate Chain with OpenSSL for P-256 CA Keys
TL;DR: Run openssl s_client -connect yoursite.com:443 -servername yoursite.com </dev/null 2>/dev/null | grep -E "^ +[0-9]+ s:|a:PKEY" with OpenSSL 3.x. If any certificate after number 0 shows prime256v1, your chain has a P-256 CA key and Chrome will block it from March 15, 2027. Or skip the terminal and use our P-256 checker.
Why you need to check the whole chain
Chrome announced on December 3, 2026 that it will stop trusting CA keys that use ECDSA P-256. The rule looks at the CA certificates above your site's certificate: intermediates, roots and cross-signs. Your own leaf key is not part of the rule for now. If you want the background first, read our main explainer.
So checking only your own certificate is not enough. You need to see every certificate your server sends, and the key type of each one.
P-256 has a few names. You will see all of them in tools:
prime256v1(OpenSSL)secp256r1(SEC/IETF name)P-256orNIST CURVE: P-256
They all mean same curve.
Method 1: our checker (no terminal)
Open xura.tools/p256, enter your domain and you get the full chain with the key type of each certificate. P-256 CA keys are flagged. Every result has its own link, so you can share it with your team. For example: github.com, google.com.
Method 2: OpenSSL 3.x one-liner
This is the fastest way if you have OpenSSL 3.0 or newer:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
| grep -E "^ +[0-9]+ s:|a:PKEY"
Here is real output for cloudflare.com from our scan on December 5, 2026:
0 s:CN=cloudflare.com
a:PKEY: EC, (prime256v1); sigalg: ecdsa-with-SHA256
1 s:C=US, O=Google Trust Services, CN=WE1
a:PKEY: EC, (prime256v1); sigalg: ecdsa-with-SHA384
2 s:C=US, O=Google Trust Services LLC, CN=GTS Root R4
a:PKEY: EC, (secp384r1); sigalg: sha256WithRSAEncryption
How to read it:
- 0 is the leaf (cloudflare.com). It's P-256, but that is allowed.
- 1 is the intermediate, WE1. Its key is
prime256v1. This is the problem. - 2 is GTS Root R4 with a P-384 key. It is signed with RSA, which tells you the server sent a cross-signed copy of the root. Its key is fine.
The a:PKEY line shows the key of that certificate. That's the one Chrome cares about. The sigalg part is how that certificate was signed, which is a different thing. Don't mix them up.
Just tell me yes or no
This prints only the P-256 CA keys and nothing else:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
| awk '/^ *[0-9]+ s:/{d=$1; s=$0} /a:PKEY/ && d>0 && /prime256v1/{print "P-256 CA KEY: " s}'
Empty output means no P-256 CA key in the chain your server sent.
Check many hosts
for h in example.com www.example.com api.example.com; do
r=$(openssl s_client -connect $h:443 -servername $h </dev/null 2>/dev/null \
| awk '/^ *[0-9]+ s:/{d=$1} /a:PKEY/ && d>0 && /prime256v1/{print "P-256"}' | head -1)
echo "$h: ${r:-ok}"
done
Method 3: older OpenSSL or macOS LibreSSL
The a:PKEY line only exists in OpenSSL 3.x. The openssl that ships with macOS is LibreSSL, and it doesn't print it. This version works with both:
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null 2>/dev/null \
| sed -n '/BEGIN CERT/,/END CERT/p' > chain.pem
openssl crl2pkcs7 -nocrl -certfile chain.pem \
| openssl pkcs7 -print_certs -text -noout \
| grep -E "Subject:|ASN1 OID|Public-Key"
Output for github.com:
Subject: CN=github.com
Public-Key: (256 bit)
ASN1 OID: prime256v1
Subject: C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication CA DV E36
Public-Key: (256 bit)
ASN1 OID: prime256v1
Subject: C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication Root E46
Public-Key: (384 bit)
ASN1 OID: secp384r1
The first block is the leaf. The second is the intermediate, Sectigo DV E36, with a P-256 key. That chain will be blocked.
On a Mac you can also install OpenSSL 3 with Homebrew (brew install openssl) and use the commands from method 2.
Method 4: check a certificate file before you deploy
If you have the new fullchain.pem from your CA, check it before it goes live:
openssl crl2pkcs7 -nocrl -certfile /etc/letsencrypt/live/example.com/fullchain.pem \
| openssl pkcs7 -print_certs -text -noout \
| grep -E "Subject:|ASN1 OID|Public-Key"
The first certificate in the file is normally your leaf. Everything after it is a CA certificate and must not show prime256v1.
Things that can fool you
The root is often not sent
Many servers don't send the root, so you won't see it in the output. Look at the issuer of the last certificate you got. Chrome's notice says 3 roots in its store use P-256. Public analysis names them as Amazon Root CA 3, GlobalSign ECC Root CA - R4 and e-Szigno Root CA 2017. If your last certificate's issuer is one of those, you're affected even if the intermediate is fine. We take this list from Ryan Hurst's write-up, not from Chrome directly.
Servers with two certificates
Some servers, including big CDNs, have both an ECDSA and an RSA certificate. They pick one based on what the client supports. Chrome supports ECDSA, so it usually gets the ECDSA chain. OpenSSL also gets ECDSA by default, which matches Chrome. To see the RSA chain, force RSA signatures:
openssl s_client -connect cloudflare.com:443 -servername cloudflare.com \
-sigalgs "rsa_pss_rsae_sha256:rsa_pkcs1_sha256" </dev/null 2>/dev/null \
| grep -E "^ +[0-9]+ s:|a:PKEY"
For cloudflare.com this returned Google Trust Services WR1 (RSA 2048) under GTS Root R1 (RSA 4096). RSA chains are not affected by this rule.
Forgetting SNI
Always pass -servername. Without it, a shared server may return a default certificate that has nothing to do with your site.
Other hostnames and ports
Check www, your API, your mail server if you use STARTTLS, and any other public host. Each one can have a different certificate and a different CA.
Chrome builds its own path
OpenSSL shows what your server sends. Chrome can build a different path to a root it trusts, for example using a cached intermediate. What your server sends is still the best signal, and its what you control.
What to do if you find a P-256 CA key
- Note the intermediate name (for example WE1, WE2 or Sectigo DV E36).
- Look it up in our list: which CAs use P-256 intermediates.
- Follow the steps for your setup in How to fix a P-256 chain.
- Re-run the check after you deploy the new certificate.
FAQ
What does a:PKEY: EC, (prime256v1) mean?
It's the public key of that certificate: an elliptic curve key on the P-256 curve. If it's on certificate 1 or higher, it's a CA key and Chrome will block the chain from March 15, 2027.
My leaf shows prime256v1. Is that a problem?
Not for this rule. Chrome checks CA keys only. Chrome does recommend moving server keys away from P-256, and says it may restrict leaf keys later.
Why don't I see a:PKEY in my output?
You're on an older OpenSSL or on LibreSSL. Use method 3, or install OpenSSL 3.
Can I check a site from Chrome itself?
Yes. Click the icon left of the address bar, open the certificate viewer and select each certificate in the hierarchy. Look at the Subject Public Key Info for the curve name. It's slower than the commands above.
Does an RSA 2048 intermediate need to change?
Not for this rule. Chrome says no other key types or sizes are affected at this time. For new CAs, Chrome recommends P-384 or RSA 3072 and up.
Is there an API?
Yes. Our checker has a JSON API and an MCP server. See the tools page for all checks.
Is your site affected? Run the free P-256 check.