diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index eb122b6b..b2a8d4cc 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2107,6 +2107,17 @@ class X509 return $chain; } + /** + * Returns the current cert + * + * @access public + * @return array|bool + */ + public function &getCurrentCert() + { + return $this->currentCert; + } + /** * Set public key *