diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index e8b3311f0..2c0475c07 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -8086,6 +8086,8 @@ int ParseCertRelative(DecodedCert* cert, int type, int verify, void* cm) #ifndef NO_SKID if (cert->extAuthKeyIdSet) cert->ca = GetCA(cm, cert->extAuthKeyId); + if (cert->ca == NULL && cert->extSubjKeyIdSet) + cert->ca = GetCA(cm, cert->extSubjKeyId); if (cert->ca == NULL) cert->ca = GetCAByName(cm, cert->issuerHash);