Discuss this help topic in SecureBlackbox Forum
Validate signature over certificate request
Upon receiving a certificate request from someone, and loading it into a TElCertificateRequest object as described here, you would normally want to check the validity of its signature. This is a mandatory step which is needed to ensure that the request's data was really signed (thus, authorized) by the private key holder.
Suppose you have loaded the request into the req object. Now call its ValidateSignature() method and check if it returns true:
if (req.ValidateSignature()) {
// the signature is valid, we can go ahead with certificate generation
} else {
throw new Exception("Bad request signature");
}