Verifies that you have defined a certificate.
If the public or private key is empty, this function returns true.