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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기