How-Tos

How-To: Check Whether Your Site’s Certificate Chain Uses a P-256 CA Key With openssl

Leave a comment

With Chrome dropping trust in P-256 CA keys on March 15, 2027, and Mozilla heading the same way, I wanted a fast way to check my own sites. What matters is the key of the CA that signed your certificate (and the chain above it), not just your own certificate’s key. openssl can show it.

1. Grab the chain your server sends

host=example.com
openssl s_client -connect "$host:443" -servername "$host" -showcerts </dev/null 2>/dev/null \
  | awk '/BEGIN CERTIFICATE/{n++} n>0{print > ("cert" n ".pem")}'
ls cert*.pem

cert1.pem is your site’s certificate. cert2.pem and up are the intermediates your server sends.

2. Look at each certificate’s subject, issuer and key

for f in cert*.pem; do
  echo "== $f"
  openssl x509 -in "$f" -noout -subject -issuer
  openssl x509 -in "$f" -noout -text | grep -E 'Public Key Algorithm|Public-Key|NIST CURVE'
done

3. Read the results

  • A P-256 key shows Public-Key: (256 bit) and NIST CURVE: P-256.
  • If cert2 or higher shows P-256, a CA key in your chain uses it. That’s what Chrome’s change targets.
  • The root usually isn’t sent. Note the issuer on your last intermediate and check that root’s key with your CA.
  • Your own cert1 on P-256 is a separate question from the chain requirement, though it’s worth planning for.

4. Fix it

If a CA key in your chain is P-256, ask your CA for a chain without one, ideally CNSA 1.0-style (P-384 or RSA-3072+), then reissue and reload your web server. Re-run the check afterward. Pair it with my certificate expiry how-to.

God Bless, and May the Source Be with You!

References & Further Reading

Subscribe (RSS) Follow How-Tos via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.