Lines Matching refs:currentCert

174     private $currentCert;
435 unset($this->currentCert);
441 $this->currentCert = $cert;
460 $this->currentCert = false;
470 $this->currentCert = false;
489 $this->currentCert = $x509;
968 $oldcert = $this->currentCert;
975 $this->currentCert = $oldcert;
1009 $this->currentCert = $oldcert;
1033 if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
1093 if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
1101 $notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
1104 $notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter'];
1228 $this->CAs[] = $parent->currentCert;
1264 if (!is_array($this->currentCert) || !isset($this->signatureSubject)) {
1279 case isset($this->currentCert['tbsCertificate']):
1282 case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $this->currentCert['tbsCertificate']['subject']:
1290 $signingCert = $this->currentCert; // working cert
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']):
1325 $this->currentCert['signatureAlgorithm']['algorithm'],
1326 substr($this->currentCert['signature'], 1),
1329 case isset($this->currentCert['certificationRequestInfo']):
1331 $this->currentCert['certificationRequestInfo']['subjectPKInfo']['algorithm']['algorithm'],
1332 $this->currentCert['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'],
1333 $this->currentCert['signatureAlgorithm']['algorithm'],
1334 substr($this->currentCert['signature'], 1),
1337 case isset($this->currentCert['publicKeyAndChallenge']):
1339 $this->currentCert['publicKeyAndChallenge']['spki']['algorithm']['algorithm'],
1340 $this->currentCert['publicKeyAndChallenge']['spki']['subjectPublicKey'],
1341 $this->currentCert['signatureAlgorithm']['algorithm'],
1342 substr($this->currentCert['signature'], 1),
1345 case isset($this->currentCert['tbsCertList']):
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']):
1373 $this->currentCert['signatureAlgorithm']['algorithm'],
1374 substr($this->currentCert['signature'], 1),
1821 $dn = isset($this->currentCert['tbsCertList']) ? $this->currentCert['tbsCertList']['issuer'] : $this->dn;
1962 case !isset($this->currentCert) || !is_array($this->currentCert):
1964 case isset($this->currentCert['tbsCertificate']):
1965 return $this->getDN($format, $this->currentCert['tbsCertificate']['issuer']);
1966 case isset($this->currentCert['tbsCertList']):
1967 return $this->getDN($format, $this->currentCert['tbsCertList']['issuer']);
1985 case !isset($this->currentCert) || !is_array($this->currentCert):
1987 case isset($this->currentCert['tbsCertificate']):
1988 return $this->getDN($format, $this->currentCert['tbsCertificate']['subject']);
1989 case isset($this->currentCert['certificationRequestInfo']):
1990 return $this->getDN($format, $this->currentCert['certificationRequestInfo']['subject']);
2006 case !isset($this->currentCert) || !is_array($this->currentCert):
2008 case isset($this->currentCert['tbsCertificate']):
2009 return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['issuer'], $withType);
2010 case isset($this->currentCert['tbsCertList']):
2011 return $this->getDNProp($propName, $this->currentCert['tbsCertList']['issuer'], $withType);
2029 case !isset($this->currentCert) || !is_array($this->currentCert):
2031 case isset($this->currentCert['tbsCertificate']):
2032 return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['subject'], $withType);
2033 case isset($this->currentCert['certificationRequestInfo']):
2034 return $this->getDNProp($propName, $this->currentCert['certificationRequestInfo']['subject'], $withType);
2047 $chain = [$this->currentCert];
2049 if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
2053 $currentCert = $chain[count($chain) - 1];
2056 if ($currentCert['tbsCertificate']['issuer'] === $ca['tbsCertificate']['subject']) {
2057 $authorityKey = $this->getExtension('id-ce-authorityKeyIdentifier', $currentCert);
2062 if ($currentCert === $ca) {
2088 return $this->currentCert;
2141 if (isset($this->currentCert) && is_array($this->currentCert)) {
2148 $keyinfo = $this->subArray($this->currentCert, $path);
2186 unset($this->currentCert);
2194 $this->currentCert = $csr;
2210 $this->currentCert = false;
2217 $this->currentCert = false;
2223 $this->currentCert = false;
2242 $this->currentCert = $csr;
2305 unset($this->currentCert);
2308 $this->currentCert = $spkac;
2323 $this->currentCert = false;
2330 $this->currentCert = false;
2337 $this->currentCert = false;
2351 $this->currentCert = $spkac;
2406 $this->currentCert = $crl;
2421 $this->currentCert = false;
2428 $this->currentCert = false;
2434 $this->currentCert = false;
2457 $this->currentCert = $crl;
2559 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2563 if (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert['tbsCertificate'])) {
2564 $this->currentCert = $subject->currentCert;
2565 $this->currentCert['tbsCertificate']['signature'] = $signatureAlgorithm;
2566 $this->currentCert['signatureAlgorithm'] = $signatureAlgorithm;
2569 $this->currentCert['tbsCertificate']['validity']['notBefore'] = $this->timeField($this->startDate);
2572 $this->currentCert['tbsCertificate']['validity']['notAfter'] = $this->timeField($this->endDate);
2575 $this->currentCert['tbsCertificate']['serialNumber'] = $this->serialNumber;
2578 $this->currentCert['tbsCertificate']['subject'] = $subject->dn;
2581 $this->currentCert['tbsCertificate']['subjectPublicKeyInfo'] = $subjectPublicKey;
2587 } elseif (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert['tbsCertList'])) {
2611 $this->currentCert = [
2633 $this->currentCert['tbsCertificate']['extensions'] = $csrexts;
2637 $this->currentCert['tbsCertificate']['issuer'] = $issuer->dn;
2648 //$extensions = &$this->currentCert['tbsCertificate']['extensions'];
2707 $this->setExtension('id-ce-subjectKeyIdentifier', $this->computeKeyIdentifier($this->currentCert), false, false);
2713 $tbsCertificate = $this->currentCert['tbsCertificate'];
2714 $this->loadX509($this->saveX509($this->currentCert));
2716 $result = $this->currentCert;
2717 $this->currentCert['signature'] = $result['signature'] = "\0" . $issuer->privateKey->sign($this->signatureSubject);
2720 $this->currentCert = $currentCert;
2742 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2746 if (isset($this->currentCert) && is_array($this->currentCert) && isset($this->currentCert['certificationRequestInfo'])) {
2747 $this->currentCert['signatureAlgorithm'] = $signatureAlgorithm;
2749 $this->currentCert['certificationRequestInfo']['subject'] = $this->dn;
2751 $this->currentCert['certificationRequestInfo']['subjectPKInfo'] = $publicKey;
2753 $this->currentCert = [
2767 $certificationRequestInfo = $this->currentCert['certificationRequestInfo'];
2768 $this->loadCSR($this->saveCSR($this->currentCert));
2770 $result = $this->currentCert;
2771 $this->currentCert['signature'] = $result['signature'] = "\0" . $this->privateKey->sign($this->signatureSubject);
2774 $this->currentCert = $currentCert;
2796 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2801 if (isset($this->currentCert) && is_array($this->currentCert) && isset($this->currentCert['publicKeyAndChallenge'])) {
2802 $this->currentCert['signatureAlgorithm'] = $signatureAlgorithm;
2803 $this->currentCert['publicKeyAndChallenge']['spki'] = $publicKey;
2806 $this->currentCert['publicKeyAndChallenge']['challenge'] = $this->challenge & str_repeat("\x7F", strlen($this->challenge));
2809 $this->currentCert = [
2827 $publicKeyAndChallenge = $this->currentCert['publicKeyAndChallenge'];
2828 $this->loadSPKAC($this->saveSPKAC($this->currentCert));
2830 $result = $this->currentCert;
2831 $this->currentCert['signature'] = $result['signature'] = "\0" . $this->privateKey->sign($this->signatureSubject);
2834 $this->currentCert = $currentCert;
2853 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2860 if (isset($crl->currentCert) && is_array($crl->currentCert) && isset($crl->currentCert['tbsCertList'])) {
2861 $this->currentCert = $crl->currentCert;
2862 $this->currentCert['tbsCertList']['signature'] = $signatureAlgorithm;
2863 $this->currentCert['signatureAlgorithm'] = $signatureAlgorithm;
2865 $this->currentCert = [
2878 $tbsCertList = &$this->currentCert['tbsCertList'];
2943 $issuerAltName = $this->getExtension('id-ce-subjectAltName', $issuer->currentCert);
2958 $tbsCertList = $this->currentCert['tbsCertList'];
2959 $this->loadCRL($this->saveCRL($this->currentCert));
2961 $result = $this->currentCert;
2962 $this->currentCert['signature'] = $result['signature'] = "\0" . $issuer->privateKey->sign($this->signatureSubject);
2965 $this->currentCert = $currentCert;
3204 $root = $this->currentCert;
3256 $extensions = &$this->extensions($this->currentCert, $path);
3338 $extensions = &$this->extensions($this->currentCert, $path, true);
3422 $attributes = &$this->subArray($this->currentCert, 'certificationRequestInfo/attributes');
3473 $csr = $this->currentCert;
3512 $csr = $this->currentCert;
3537 $attributes = &$this->subArray($this->currentCert, 'certificationRequestInfo/attributes', true);
3655 if (isset($key->currentCert['tbsCertificate']) || isset($key->currentCert['certificationRequestInfo'])) {
3656 return $this->computeKeyIdentifier($key->currentCert, $method);
3797 if (isset($this->currentCert['tbsCertList'])) {
3798 if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates', true))) {
3822 if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
3841 if (is_array($rclist = $this->subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
3859 $crl = $this->currentCert;
3886 if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
3908 $crl = $this->currentCert;
3930 $crl = $this->currentCert;
3954 if (isset($this->currentCert['tbsCertList'])) {
3955 if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates', true))) {