public void MSASCMD_S20_TC02_ValidateCert_InvalidSignature()
{
#region User calls ValidateCert command to verify the certificate with invalid signature
Request.ValidateCert validateCert = new Request.ValidateCert
{
CheckCrl = "1",
Certificates = new byte[][] { Convert.FromBase64String("TUlJQ1lqQ0NBY3VnQXdJQkFnSVVZR3M4alpiWDBWeGpPYnU0bncwhQ==") }
};
ValidateCertRequest validateRequest = new ValidateCertRequest { RequestData = validateCert };
ValidateCertResponse validateResponse = this.CMDAdapter.ValidateCert(validateRequest);
XmlNodeList status = this.GetValidateCertStatusCode(validateResponse);
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCMD_R4479");
// Verify MS-ASCMD requirement: MS-ASCMD_R4479
Site.CaptureRequirementIfAreEqual<string>(
"3",
status[0].InnerText,
4479,
@"[In Status(ValidateCert)] [When the scope is Item], [the cause of the status value 3 is] The signature in the certificate is invalid.");
#endregion
}