Validates the certificate signed by certificate authority (CA)
Returns True if certificate is valid, and False otherwise.
Use this function to validate a certificate signed by certificate authority (CA). First you need to either set all certificate properties or load the certificate from the stream or from the buffer. Then call this function to do validation. Pass the certificate of the CA to this function as a parameter. To validate a self-signed certificate use Validate function.