Lines Matching refs:currentCert

204     private $currentCert;  variable in phpseclib3\\File\\X509
477 unset($this->currentCert);
483 $this->currentCert = $cert;
502 $this->currentCert = false;
512 $this->currentCert = false;
531 $this->currentCert = $x509;
1004 $oldcert = $this->currentCert;
1011 $this->currentCert = $oldcert;
1045 $this->currentCert = $oldcert;
1070 if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
1130 if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
1138 $notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
1141 $notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter'];
1263 $this->CAs[] = $parent->currentCert;
1301 if (!is_array($this->currentCert) || !isset($this->signatureSubject)) {
1316 case isset($this->currentCert['tbsCertificate']):
1319 … !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $this->cu…
1327 $signingCert = $this->currentCert; // working cert
1337 …case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $ca['…
1338 …fined('FILE_X509_IGNORE_TYPE') && $this->getDN(self::DN_STRING, $this->currentCert['tbsCertificate…
1362 $this->currentCert['signatureAlgorithm']['algorithm'],
1363 substr($this->currentCert['signature'], 1),
1366 case isset($this->currentCert['certificationRequestInfo']):
1368 … $this->currentCert['certificationRequestInfo']['subjectPKInfo']['algorithm']['algorithm'],
1369 … $this->currentCert['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'],
1370 $this->currentCert['signatureAlgorithm']['algorithm'],
1371 substr($this->currentCert['signature'], 1),
1374 case isset($this->currentCert['publicKeyAndChallenge']):
1376 $this->currentCert['publicKeyAndChallenge']['spki']['algorithm']['algorithm'],
1377 $this->currentCert['publicKeyAndChallenge']['spki']['subjectPublicKey'],
1378 $this->currentCert['signatureAlgorithm']['algorithm'],
1379 substr($this->currentCert['signature'], 1),
1382 case isset($this->currentCert['tbsCertList']):
1387 …case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertList']['issuer'] === $ca['tbs…
1388 …fined('FILE_X509_IGNORE_TYPE') && $this->getDN(self::DN_STRING, $this->currentCert['tbsCertList'][…
1410 $this->currentCert['signatureAlgorithm']['algorithm'],
1411 substr($this->currentCert['signature'], 1),
1852 …$dn = isset($this->currentCert['tbsCertList']) ? $this->currentCert['tbsCertList']['issuer'] : $th…
1994 case !isset($this->currentCert) || !is_array($this->currentCert):
1996 case isset($this->currentCert['tbsCertificate']):
1997 return $this->getDN($format, $this->currentCert['tbsCertificate']['issuer']);
1998 case isset($this->currentCert['tbsCertList']):
1999 return $this->getDN($format, $this->currentCert['tbsCertList']['issuer']);
2018 case !isset($this->currentCert) || !is_array($this->currentCert):
2020 case isset($this->currentCert['tbsCertificate']):
2021 return $this->getDN($format, $this->currentCert['tbsCertificate']['subject']);
2022 case isset($this->currentCert['certificationRequestInfo']):
2023 … return $this->getDN($format, $this->currentCert['certificationRequestInfo']['subject']);
2040 case !isset($this->currentCert) || !is_array($this->currentCert):
2042 case isset($this->currentCert['tbsCertificate']):
2043 … return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['issuer'], $withType);
2044 case isset($this->currentCert['tbsCertList']):
2045 … return $this->getDNProp($propName, $this->currentCert['tbsCertList']['issuer'], $withType);
2064 case !isset($this->currentCert) || !is_array($this->currentCert):
2066 case isset($this->currentCert['tbsCertificate']):
2067 … return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['subject'], $withType);
2068 case isset($this->currentCert['certificationRequestInfo']):
2069 …return $this->getDNProp($propName, $this->currentCert['certificationRequestInfo']['subject'], $wit…
2083 $chain = [$this->currentCert];
2085 if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
2092 $currentCert = $chain[count($chain) - 1];
2095 if ($currentCert['tbsCertificate']['issuer'] === $ca['tbsCertificate']['subject']) {
2096 … $authorityKey = $this->getExtension('id-ce-authorityKeyIdentifier', $currentCert);
2101 if ($currentCert === $ca) {
2128 return $this->currentCert;
2185 if (isset($this->currentCert) && is_array($this->currentCert)) {
2192 $keyinfo = $this->subArray($this->currentCert, $path);
2231 unset($this->currentCert);
2239 $this->currentCert = $csr;
2255 $this->currentCert = false;
2262 $this->currentCert = false;
2268 $this->currentCert = false;
2287 $this->currentCert = $csr;
2352 unset($this->currentCert);
2355 $this->currentCert = $spkac;
2370 $this->currentCert = false;
2377 $this->currentCert = false;
2384 $this->currentCert = false;
2398 $this->currentCert = $spkac;
2455 $this->currentCert = $crl;
2470 $this->currentCert = false;
2477 $this->currentCert = false;
2483 $this->currentCert = false;
2506 $this->currentCert = $crl;
2613 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2626 …if (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert
2627 $this->currentCert = $subject->currentCert;
2628 $this->currentCert['tbsCertificate']['signature'] = $signatureAlgorithm;
2629 $this->currentCert['signatureAlgorithm'] = $signatureAlgorithm;
2633 …$this->currentCert['tbsCertificate']['validity']['notBefore'] = $this->timeField($this->startDate);
2636 … $this->currentCert['tbsCertificate']['validity']['notAfter'] = $this->timeField($this->endDate);
2639 $this->currentCert['tbsCertificate']['serialNumber'] = $this->serialNumber;
2642 $this->currentCert['tbsCertificate']['subject'] = $subject->dn;
2645 $this->currentCert['tbsCertificate']['subjectPublicKeyInfo'] = $subjectPublicKey;
2651 …} elseif (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->curre…
2675 $this->currentCert = [
2697 $this->currentCert['tbsCertificate']['extensions'] = $csrexts;
2701 $this->currentCert['tbsCertificate']['issuer'] = $issuer->dn;
2771 …nsion('id-ce-subjectKeyIdentifier', $this->computeKeyIdentifier($this->currentCert), false, false);
2777 $tbsCertificate = $this->currentCert['tbsCertificate'];
2778 $this->loadX509($this->saveX509($this->currentCert));
2780 $result = $this->currentCert;
2781 …$this->currentCert['signature'] = $result['signature'] = "\0" . $issuer->privateKey->sign($this->s…
2784 $this->currentCert = $currentCert;
2807 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2811 …if (isset($this->currentCert) && is_array($this->currentCert) && isset($this->currentCert['certifi…
2812 $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
2814 $this->currentCert['certificationRequestInfo']['subject'] = $this->dn;
2816 $this->currentCert['certificationRequestInfo']['subjectPKInfo'] = $publicKey;
2818 $this->currentCert = [
2832 $certificationRequestInfo = $this->currentCert['certificationRequestInfo'];
2833 $this->loadCSR($this->saveCSR($this->currentCert));
2835 $result = $this->currentCert;
2836 …$this->currentCert['signature'] = $result['signature'] = "\0" . $this->privateKey->sign($this->sig…
2839 $this->currentCert = $currentCert;
2862 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2867 …if (isset($this->currentCert) && is_array($this->currentCert) && isset($this->currentCert['publicK…
2868 $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
2869 $this->currentCert['publicKeyAndChallenge']['spki'] = $publicKey;
2872 …$this->currentCert['publicKeyAndChallenge']['challenge'] = $this->challenge & str_repeat("\x7F", s…
2875 $this->currentCert = [
2893 $publicKeyAndChallenge = $this->currentCert['publicKeyAndChallenge'];
2894 $this->loadSPKAC($this->saveSPKAC($this->currentCert));
2896 $result = $this->currentCert;
2897 …$this->currentCert['signature'] = $result['signature'] = "\0" . $this->privateKey->sign($this->sig…
2900 $this->currentCert = $currentCert;
2922 $currentCert = isset($this->currentCert) ? $this->currentCert : null;
2929 …if (isset($crl->currentCert) && is_array($crl->currentCert) && isset($crl->currentCert['tbsCertLis…
2930 $this->currentCert = $crl->currentCert;
2931 $this->currentCert['tbsCertList']['signature']['algorithm'] = $signatureAlgorithm;
2932 $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
2934 $this->currentCert = [
2947 $tbsCertList = &$this->currentCert['tbsCertList'];
3012 $issuerAltName = $this->getExtension('id-ce-subjectAltName', $issuer->currentCert);
3027 $tbsCertList = $this->currentCert['tbsCertList'];
3028 $this->loadCRL($this->saveCRL($this->currentCert));
3030 $result = $this->currentCert;
3031 …$this->currentCert['signature'] = $result['signature'] = "\0" . $issuer->privateKey->sign($this->s…
3034 $this->currentCert = $currentCert;
3278 $root = $this->currentCert;
3331 $extensions = &$this->extensions($this->currentCert, $path);
3416 $extensions = &$this->extensions($this->currentCert, $path, true);
3505 $attributes = &$this->subArray($this->currentCert, 'certificationRequestInfo/attributes');
3557 $csr = $this->currentCert;
3597 $csr = $this->currentCert;
3623 … $attributes = &$this->subArray($this->currentCert, 'certificationRequestInfo/attributes', true);
3743 …if (isset($key->currentCert['tbsCertificate']) || isset($key->currentCert['certificationRequestInf…
3744 return $this->computeKeyIdentifier($key->currentCert, $method);
3889 if (isset($this->currentCert['tbsCertList'])) {
3890 …if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates', tru…
3915 … if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
3935 … if (is_array($rclist = $this->subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
3954 $crl = $this->currentCert;
3982 … if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
4005 $crl = $this->currentCert;
4028 $crl = $this->currentCert;
4053 if (isset($this->currentCert['tbsCertList'])) {
4054 …if (is_array($rclist = &$this->subArray($this->currentCert, 'tbsCertList/revokedCertificates', tru…