XpsDigitalSignature.VerifyCertificate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies an X.509 certificate.
Overloads
VerifyCertificate() |
Verifies the X.509 certificate embedded in the package. |
VerifyCertificate(X509Certificate) |
Verifies the specified X.509 certificate. |
VerifyCertificate()
Verifies the X.509 certificate embedded in the package.
public:
System::Security::Cryptography::X509Certificates::X509ChainStatusFlags VerifyCertificate();
[System.Security.SecurityCritical]
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate ();
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate ();
[<System.Security.SecurityCritical>]
member this.VerifyCertificate : unit -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
member this.VerifyCertificate : unit -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
Public Function VerifyCertificate () As X509ChainStatusFlags
Returns
A bitwise combination of the enumeration values that specify the result of the verification attempt.
- Attributes
Remarks
Your application will need to decide what flags are critical for verifying certificates.
Some certificate verifications may require Internet connectivity.
The X.509 certificate of the signer is embedded by the SignDigitally method when called with the embedCertificate
parameter set to true
.
See also
Applies to
VerifyCertificate(X509Certificate)
Verifies the specified X.509 certificate.
public:
static System::Security::Cryptography::X509Certificates::X509ChainStatusFlags VerifyCertificate(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
public static System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
[<System.Security.SecurityCritical>]
static member VerifyCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
static member VerifyCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
Public Shared Function VerifyCertificate (certificate As X509Certificate) As X509ChainStatusFlags
Parameters
- certificate
- X509Certificate
A certificate of authenticity.
Returns
A bitwise combination of the enumeration values that specify the result of the verification attempt.
- Attributes
Remarks
Your application will need to decide what flags are critical for verifying certificates.
Some certificate verifications may require Internet connectivity.
See also
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈