Lines Matching refs:format

123      * Auto-detect the format
502 * @param int $format optional
505 public function saveX509(array $cert, $format = self::FORMAT_PEM)
559 switch ($format) {
570 * format.
623 * Map extension values from extension-specific internal format to
705 * format.
746 * Map attribute values from attribute-specific internal format to
791 * format.
821 * Map DN values from DN-specific internal format to
1814 * @param mixed $format optional
1818 public function getDN($format = self::DN_ARRAY, array $dn = null)
1824 switch ((int) $format) {
1950 return $format == self::DN_OPENSSL ? $result : $output;
1956 * @param int $format optional
1959 public function getIssuerDN($format = self::DN_ARRAY)
1965 return $this->getDN($format, $this->currentCert['tbsCertificate']['issuer']);
1967 return $this->getDN($format, $this->currentCert['tbsCertList']['issuer']);
1977 * @param int $format optional
1980 public function getSubjectDN($format = self::DN_ARRAY)
1984 return $this->getDN($format);
1988 return $this->getDN($format, $this->currentCert['tbsCertificate']['subject']);
1990 return $this->getDN($format, $this->currentCert['certificationRequestInfo']['subject']);
2254 * @param int $format optional
2257 public function saveCSR(array $csr, $format = self::FORMAT_PEM)
2283 switch ($format) {
2363 * @param int $format optional
2366 public function saveSPKAC(array $spkac, $format = self::FORMAT_PEM)
2385 switch ($format) {
2391 // no other SPKAC decoders phpseclib will use that same format
2466 * @param int $format optional
2469 public function saveCRL(array $crl, $format = self::FORMAT_PEM)
2506 switch ($format) {
2523 * @param string $date in format date('D, d M Y H:i:s O')
2532 $year = $dateObj->format('Y'); // the same way ASN1.php parses this
2595 $startDate = !empty($this->startDate) ? $this->startDate : $startDate->format('D, d M Y H:i:s O');
2598 $endDate = !empty($this->endDate) ? $this->endDate : $endDate->format('D, d M Y H:i:s O');
2858 $thisUpdate = !empty($this->startDate) ? $this->startDate : $thisUpdate->format('D, d M Y H:i:s O');
3042 $this->startDate = $date->format('D, d M Y H:i:s O');
3068 $this->endDate = $date->format('D, d M Y H:i:s O');
3664 // If in PEM format, convert to binary.
3686 $format = $this->publicKey instanceof RSA && ($this->publicKey->getPadding() & RSA::SIGNATURE_PSS) ?
3690 $publicKey = base64_decode(preg_replace('#-.+-|[\r\n]#', '', $this->publicKey->toString($format)));
3701 $mapped['subjectPublicKey'] = $this->publicKey->toString($format);
3784 'revocationDate' => $this->timeField($revocationDate->format('D, d M Y H:i:s O'))];