Lines Matching refs:subject

177      * The signature subject
437 $this->dn = $cert['tbsCertificate']['subject'];
480 $this->mapInDNs($x509, 'tbsCertificate/subject/rdnSequence');
490 $this->dn = $x509['tbsCertificate']['subject'];
532 $filters['tbsCertificate']['subject']['rdnSequence']['value'] = $type_utf8_string;
555 $this->mapOutDNs($cert, 'tbsCertificate/subject/rdnSequence');
984 If the keyUsage extension is present, then the subject public key
1282 case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $this->currentCert['tbsCertificate']['subject']:
1300 case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $ca['tbsCertificate']['subject']:
1301 case defined('FILE_X509_IGNORE_TYPE') && $this->getDN(self::DN_STRING, $this->currentCert['tbsCertificate']['issuer']) === $this->getDN(self::DN_STRING, $ca['tbsCertificate']['subject']):
1350 case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertList']['issuer'] === $ca['tbsCertificate']['subject']:
1351 case defined('FILE_X509_IGNORE_TYPE') && $this->getDN(self::DN_STRING, $this->currentCert['tbsCertList']['issuer']) === $this->getDN(self::DN_STRING, $ca['tbsCertificate']['subject']):
1812 * Get the Distinguished Name for a certificates subject
1974 * Get the Distinguished Name for a certificate/csr subject
1988 return $this->getDN($format, $this->currentCert['tbsCertificate']['subject']);
1990 return $this->getDN($format, $this->currentCert['certificationRequestInfo']['subject']);
2018 * Get an individual Distinguished Name property for a certificate/csr subject
2032 return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['subject'], $withType);
2034 return $this->getDNProp($propName, $this->currentCert['certificationRequestInfo']['subject'], $withType);
2056 if ($currentCert['tbsCertificate']['issuer'] === $ca['tbsCertificate']['subject']) {
2189 $this->dn = $csr['certificationRequestInfo']['subject'];
2228 $this->mapInDNs($csr, 'certificationRequestInfo/subject/rdnSequence');
2230 $this->dn = $csr['certificationRequestInfo']['subject'];
2274 $filters['certificationRequestInfo']['subject']['rdnSequence']['value']
2279 $this->mapOutDNs($csr, 'certificationRequestInfo/subject/rdnSequence');
2544 * $subject can be either an existing X.509 cert (if you want to resign it),
2549 public function sign(X509 $issuer, X509 $subject)
2555 if (isset($subject->publicKey) && !($subjectPublicKey = $subject->formatSubjectPublicKey())) {
2563 if (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert['tbsCertificate'])) {
2564 $this->currentCert = $subject->currentCert;
2577 if (!empty($subject->dn)) {
2578 $this->currentCert['tbsCertificate']['subject'] = $subject->dn;
2580 if (!empty($subject->publicKey)) {
2584 if (isset($subject->domains)) {
2587 } elseif (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert['tbsCertList'])) {
2590 if (!isset($subject->publicKey)) {
2622 'subject' => $subject->dn,
2630 $csrexts = $subject->getAttribute('pkcs-9-at-extensionRequest', 0);
2655 if (isset($subject->currentKeyIdentifier)) {
2656 $this->setExtension('id-ce-subjectKeyIdentifier', $subject->currentKeyIdentifier);
2661 if (isset($subject->domains) && count($subject->domains)) {
2662 $altName = array_map(['\phpseclib3\File\X509', 'dnsName'], $subject->domains);
2665 if (isset($subject->ipAddresses) && count($subject->ipAddresses)) {
2667 //$ips = count($subject->domains) ? $subject->ipAddresses : array_slice($subject->ipAddresses, 1);
2669 foreach ($subject->ipAddresses as $ipAddress) {
2670 $encoded = $subject->ipAddress($ipAddress);
2706 if (!isset($subject->currentKeyIdentifier)) {
2749 $this->currentCert['certificationRequestInfo']['subject'] = $this->dn;
2757 'subject' => $this->dn,
3584 * Sets the subject key identifier