Validates the self-signed certificate
True if certificate is valid.
Use this function to validate a self-signed certificate. 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 perform validation. To validate a certificate which was signed by certificate authority (CA) use ValidateWithCA function.