-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Labels
Description
Version: 8.12.0
Line 4524 in 9391fc1
| current_pkey = X509_get0_pubkey(current_cert); |
X509_get0_pubkey can fail and return null
https://docs.openssl.org/1.1.1/man3/X509_get_pubkey/#return-values
In this case, curl will segfault at
Line 4537 in 9391fc1
| type_name = EVP_PKEY_get0_type_name(current_pkey); |
$ openssl x509 -in /tmp/cert.pem -pubkey
Error getting public key
4017346E477F0000:error:03000072:digital envelope routines:X509_PUBKEY_get0:decode error:../crypto/x509/x_pubkey.c:458: