public function validateCert($certPem) {
    if ($this->getCaCert()) {
      self::validate($certPem, $this->getCaCert(), $this->getCrl(), $this->getCrlDistCert());
    }
  }
public function validateCert($certPem) {
    if ($this->getCaCert()) {
      self::validate($certPem, $this->getCaCert(), $this->getCrl(), $this->getCrlDistCert());
    }
  }
public function validateCert ( $ certPem ) { if ( $ this -> getCaCert ( ) ) { self :: validate ( $ certPem , $ this -> getCaCert ( ) , $ this -> getCrl ( ) , $ this -> getCrlDistCert ( ) ) ; } }
Determine whether an X.509 certificate is currently valid.

@param string $certPem
PEM-encoded certificate.
@throws InvalidCertException
Invalid certificates are reported as exceptions.
Determine whether an X . 509 certificate is currently valid .