未验证 提交 3a088423 编写于 作者: K Kevin Jones 提交者: GitHub

Always commit X.509 chain before Finish

For OpenSSL 3, we need to always commit the chain to clear out the untrusted intermediates. Otherwise, we started getting details about the partial chain that we don't map to codes.

This fixes the behavior so that an AKI/SKI mismatch reports as a partial chain.
上级 9fa908c6
......@@ -160,6 +160,8 @@ public static void FlushStores()
}
}
chainPal.CommitToChain();
if (revocationMode != X509RevocationMode.NoCheck)
{
if (OpenSslX509ChainProcessor.IsCompleteChain(status))
......@@ -179,7 +181,6 @@ public static void FlushStores()
revocationMode = X509RevocationMode.NoCheck;
}
chainPal.CommitToChain();
chainPal.ProcessRevocation(revocationMode, revocationFlag);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册