Hallo,
ich verwende folgenden Code zur Verifizierung einer Signatur:
public static void CheckSignature(byte[] encodedMessage)
{
// Create a new, nondetached SignedCms message.
var signedCms = new SignedCms();
// encodedMessage is the encoded message received from
// the sender.
signedCms.Decode(encodedMessage);
// Verify the signature without validating the
// certificate.
signedCms.CheckSignature(false);
}
Die Methode CheckSignature() wirft folgende Exception:> Fehlermeldung:
System.Security.Cryptography.CryptographicException was unhandled by user code
HResult=-2146885614
Message=The revocation function was unable to check revocation for the certificate.Source=System.Security
StackTrace:
at System.Security.Cryptography.Pkcs.SignerInfo.Verify(X509Certificate2Collection extraStore, X509Certificate2 certificate, Boolean verifySignatureOnly)
at System.Security.Cryptography.Pkcs.SignerInfo.CheckSignature(X509Certificate2Collection extraStore, Boolean verifySignatureOnly)
at System.Security.Cryptography.Pkcs.SignedCms.CheckSignatures(SignerInfoCollection signers, X509Certificate2Collection extraStore, Boolean verifySignatureOnly)
at System.Security.Cryptography.Pkcs.SignedCms.CheckSignature(X509Certificate2Collection extraStore, Boolean verifySignatureOnly)
at System.Security.Cryptography.Pkcs.SignedCms.CheckSignature(Boolean verifySignatureOnly)
Was können die Ursachen dafür sein, dass die Revocation List nicht geprüft werden kann?
Wie finde ich heraus, was in meinem Fall die Prüfung der Liste verhindert?
Hallo punkdevil,
und Google-Suche nach The revocation function was unable to check revocation for the certificate hilft trotz mehrerer Treffer mit der Fehlermeldung als Titel nicht?
herbivore
Ich habe bereits gegoggelt, aber leider keine Lösung für das Problem gefunden.
Es könnte am Zertifikat liegen oder an der Netzwerkverbindung. Beides habe ich aber geprüft.