diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index df376989..b42da814 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -1993,6 +1993,18 @@ class File_X509 { return $this->getDN($string, $this->currentCert['tbsCertificate']['issuer']); } + /** + * Alias of getDN() + * + * @param Boolean $string optional + * @access public + * @return Mixed + */ + function getSubjectDN($string = false) + { + return $this->getDN($string); + } + /** * Get an individual Distinguished Name property for a certificates issuer * @@ -2009,6 +2021,18 @@ class File_X509 { return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['issuer']); } + /** + * Alias of getDNProp() + * + * @param String $propName + * @access public + * @return Mixed + */ + function getSubjectDNProp($propName) + { + return $this->getDNProp($propName); + } + /** * Set public key *