Discuss this help topic in SecureBlackbox Forum

Adjust hash algorithm when generating certificate

When generating a certificate signed with a different certificate (CA), sometimes (e.g., when using a request-based Generate()) it is impossible to provide the appropriate hash algorithm needed to sign the certificate. In this case you can pass the hash algorithm via the TElX509CertificateEx's PreferredHashAlgorithm property: cert.PreferredHashAlgorithm = SBConstants.Unit.SB_ALGORITHM_DGST_SHA256;
cert.Generate(request, newCert);

Certificate-related How To articles

Discuss this help topic in SecureBlackbox Forum