ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct () | |
Default Constructor. More... | |
loadX509 ($cert, $mode=self::FORMAT_AUTO_DETECT) | |
Load X.509 certificate. More... | |
saveX509 ($cert, $format=self::FORMAT_PEM) | |
Save X.509 certificate. More... | |
_mapInExtensions (&$root, $path, $asn1) | |
Map extension values from octet string to extension-specific internal format. More... | |
_mapOutExtensions (&$root, $path, $asn1) | |
Map extension values from extension-specific internal format to octet string. More... | |
_mapInAttributes (&$root, $path, $asn1) | |
Map attribute values from ANY type to attribute-specific internal format. More... | |
_mapOutAttributes (&$root, $path, $asn1) | |
Map attribute values from attribute-specific internal format to ANY type. More... | |
_getMapping ($extnId) | |
Associate an extension ID to an extension mapping. More... | |
loadCA ($cert) | |
Load an X.509 certificate as a certificate authority. More... | |
validateURL ($url) | |
Validate an X.509 certificate against a URL. More... | |
validateDate ($date=null) | |
Validate a date. More... | |
validateSignature ($caonly=true) | |
Validate a signature. More... | |
_validateSignature ($publicKeyAlgorithm, $publicKey, $signatureAlgorithm, $signature, $signatureSubject) | |
Validates a signature. More... | |
_reformatKey ($algorithm, $key) | |
Reformat public keys. More... | |
_decodeIP ($ip) | |
Decodes an IP address. More... | |
_encodeIP ($ip) | |
Encodes an IP address. More... | |
_translateDNProp ($propName) | |
"Normalizes" a Distinguished Name property More... | |
setDNProp ($propName, $propValue, $type='utf8String') | |
Set a Distinguished Name property. More... | |
removeDNProp ($propName) | |
Remove Distinguished Name properties. More... | |
getDNProp ($propName, $dn=null, $withType=false) | |
Get Distinguished Name properties. More... | |
setDN ($dn, $merge=false, $type='utf8String') | |
Set a Distinguished Name. More... | |
getDN ($format=self::DN_ARRAY, $dn=null) | |
Get the Distinguished Name for a certificates subject. More... | |
getIssuerDN ($format=self::DN_ARRAY) | |
Get the Distinguished Name for a certificate/crl issuer. More... | |
getSubjectDN ($format=self::DN_ARRAY) | |
Get the Distinguished Name for a certificate/csr subject Alias of getDN() More... | |
getIssuerDNProp ($propName, $withType=false) | |
Get an individual Distinguished Name property for a certificate/crl issuer. More... | |
getSubjectDNProp ($propName, $withType=false) | |
Get an individual Distinguished Name property for a certificate/csr subject. More... | |
getChain () | |
Get the certificate chain for the current cert. More... | |
setPublicKey ($key) | |
Set public key. More... | |
setPrivateKey ($key) | |
Set private key. More... | |
setChallenge ($challenge) | |
Set challenge. More... | |
getPublicKey () | |
Gets the public key. More... | |
loadCSR ($csr, $mode=self::FORMAT_AUTO_DETECT) | |
Load a Certificate Signing Request. More... | |
saveCSR ($csr, $format=self::FORMAT_PEM) | |
Save CSR request. More... | |
loadSPKAC ($spkac) | |
Load a SPKAC CSR. More... | |
saveSPKAC ($spkac, $format=self::FORMAT_PEM) | |
Save a SPKAC CSR request. More... | |
loadCRL ($crl, $mode=self::FORMAT_AUTO_DETECT) | |
Load a Certificate Revocation List. More... | |
saveCRL ($crl, $format=self::FORMAT_PEM) | |
Save Certificate Revocation List. More... | |
_timeField ($date) | |
Helper function to build a time field according to RFC 3280 section. More... | |
sign ($issuer, $subject, $signatureAlgorithm='sha1WithRSAEncryption') | |
Sign an X.509 certificate. More... | |
signCSR ($signatureAlgorithm='sha1WithRSAEncryption') | |
Sign a CSR. More... | |
signSPKAC ($signatureAlgorithm='sha1WithRSAEncryption') | |
Sign a SPKAC. More... | |
signCRL ($issuer, $crl, $signatureAlgorithm='sha1WithRSAEncryption') | |
Sign a CRL. More... | |
_sign ($key, $signatureAlgorithm) | |
X.509 certificate signing helper function. More... | |
setStartDate ($date) | |
Set certificate start date. More... | |
setEndDate ($date) | |
Set certificate end date. More... | |
setSerialNumber ($serial, $base=-256) | |
Set Serial Number. More... | |
makeCA () | |
Turns the certificate into a certificate authority. More... | |
& | _subArray (&$root, $path, $create=false) |
Get a reference to a subarray. More... | |
& | _extensions (&$root, $path=null, $create=false) |
Get a reference to an extension subarray. More... | |
_removeExtension ($id, $path=null) | |
Remove an Extension. More... | |
_getExtension ($id, $cert=null, $path=null) | |
Get an Extension. More... | |
_getExtensions ($cert=null, $path=null) | |
Returns a list of all extensions in use. More... | |
_setExtension ($id, $value, $critical=false, $replace=true, $path=null) | |
Set an Extension. More... | |
removeExtension ($id) | |
Remove a certificate, CSR or CRL Extension. More... | |
getExtension ($id, $cert=null) | |
Get a certificate, CSR or CRL Extension. More... | |
getExtensions ($cert=null) | |
Returns a list of all extensions in use in certificate, CSR or CRL. More... | |
setExtension ($id, $value, $critical=false, $replace=true) | |
Set a certificate, CSR or CRL Extension. More... | |
removeAttribute ($id, $disposition=self::ATTR_ALL) | |
Remove a CSR attribute. More... | |
getAttribute ($id, $disposition=self::ATTR_ALL, $csr=null) | |
Get a CSR attribute. More... | |
getAttributes ($csr=null) | |
Returns a list of all CSR attributes in use. More... | |
setAttribute ($id, $value, $disposition=self::ATTR_ALL) | |
Set a CSR attribute. More... | |
setKeyIdentifier ($value) | |
Sets the subject key identifier. More... | |
computeKeyIdentifier ($key=null, $method=1) | |
Compute a public key identifier. More... | |
_formatSubjectPublicKey () | |
Format a public key as appropriate. More... | |
setDomain () | |
Set the domain name's which the cert is to be valid for. More... | |
setIPAddress () | |
Set the IP Addresses's which the cert is to be valid for. More... | |
_dnsName ($domain) | |
Helper function to build domain array. More... | |
_iPAddress ($address) | |
Helper function to build IP Address array. More... | |
_revokedCertificate (&$rclist, $serial, $create=false) | |
Get the index of a revoked certificate. More... | |
revoke ($serial, $date=null) | |
Revoke a certificate. More... | |
unrevoke ($serial) | |
Unrevoke a certificate. More... | |
getRevoked ($serial) | |
Get a revoked certificate. More... | |
listRevoked ($crl=null) | |
List revoked certificates. More... | |
removeRevokedCertificateExtension ($serial, $id) | |
Remove a Revoked Certificate Extension. More... | |
getRevokedCertificateExtension ($serial, $id, $crl=null) | |
Get a Revoked Certificate Extension. More... | |
getRevokedCertificateExtensions ($serial, $crl=null) | |
Returns a list of all extensions in use for a given revoked certificate. More... | |
setRevokedCertificateExtension ($serial, $id, $value, $critical=false, $replace=true) | |
Set a Revoked Certificate Extension. More... | |
_extractBER ($str) | |
Extract raw BER from Base64 encoding. More... | |
getOID ($name) | |
Returns the OID corresponding to a name. More... | |
phpseclib\File\X509::__construct | ( | ) |
Default Constructor.
Definition at line 304 of file X509.php.
References phpseclib\File\ASN1\CLASS_APPLICATION, phpseclib\File\ASN1\TYPE_ANY, phpseclib\File\ASN1\TYPE_BIT_STRING, phpseclib\File\ASN1\TYPE_BMP_STRING, phpseclib\File\ASN1\TYPE_BOOLEAN, phpseclib\File\ASN1\TYPE_CHOICE, phpseclib\File\ASN1\TYPE_ENUMERATED, phpseclib\File\ASN1\TYPE_GENERALIZED_TIME, phpseclib\File\ASN1\TYPE_IA5_STRING, phpseclib\File\ASN1\TYPE_INTEGER, phpseclib\File\ASN1\TYPE_NUMERIC_STRING, phpseclib\File\ASN1\TYPE_OBJECT_IDENTIFIER, phpseclib\File\ASN1\TYPE_OCTET_STRING, phpseclib\File\ASN1\TYPE_PRINTABLE_STRING, phpseclib\File\ASN1\TYPE_SEQUENCE, phpseclib\File\ASN1\TYPE_SET, phpseclib\File\ASN1\TYPE_TELETEX_STRING, phpseclib\File\ASN1\TYPE_UNIVERSAL_STRING, phpseclib\File\ASN1\TYPE_UTC_TIME, phpseclib\File\ASN1\TYPE_UTF8_STRING, and phpseclib\File\ASN1\TYPE_VISIBLE_STRING.
phpseclib\File\X509::_decodeIP | ( | $ip | ) |
phpseclib\File\X509::_dnsName | ( | $domain | ) |
phpseclib\File\X509::_encodeIP | ( | $ip | ) |
& phpseclib\File\X509::_extensions | ( | & | $root, |
$path = null , |
|||
$create = false |
|||
) |
Get a reference to an extension subarray.
array | $root | |
string | $path | optional absolute path with / as component separator |
bool | $create | optional @access private |
Definition at line 3783 of file X509.php.
References $attributes, phpseclib\File\X509\$currentCert, $key, $path, $root, and phpseclib\File\X509\_subArray().
Referenced by phpseclib\File\X509\_getExtension(), phpseclib\File\X509\_getExtensions(), phpseclib\File\X509\_removeExtension(), and phpseclib\File\X509\_setExtension().
phpseclib\File\X509::_extractBER | ( | $str | ) |
Extract raw BER from Base64 encoding.
@access private
string | $str |
Definition at line 4571 of file X509.php.
Referenced by phpseclib\File\X509\computeKeyIdentifier(), phpseclib\File\X509\loadCRL(), phpseclib\File\X509\loadCSR(), and phpseclib\File\X509\loadX509().
phpseclib\File\X509::_formatSubjectPublicKey | ( | ) |
Format a public key as appropriate.
@access private
Definition at line 4279 of file X509.php.
References phpseclib\Crypt\RSA\PUBLIC_FORMAT_PKCS1.
Referenced by phpseclib\File\X509\signCSR(), and phpseclib\File\X509\signSPKAC().
phpseclib\File\X509::_getExtension | ( | $id, | |
$cert = null , |
|||
$path = null |
|||
) |
Get an Extension.
Returns the extension if it exists and false if not
string | $id | |
array | $cert | optional |
string | $path | optional @access private |
Definition at line 3868 of file X509.php.
References $id, $key, $path, and phpseclib\File\X509\_extensions().
Referenced by phpseclib\File\X509\getExtension(), and phpseclib\File\X509\getRevokedCertificateExtension().
phpseclib\File\X509::_getExtensions | ( | $cert = null , |
|
$path = null |
|||
) |
Returns a list of all extensions in use.
array | $cert | optional |
string | $path | optional @access private |
Definition at line 3893 of file X509.php.
References $path, and phpseclib\File\X509\_extensions().
Referenced by phpseclib\File\X509\getExtensions(), and phpseclib\File\X509\getRevokedCertificateExtensions().
phpseclib\File\X509::_getMapping | ( | $extnId | ) |
Associate an extension ID to an extension mapping.
string | $extnId | @access private |
Definition at line 1759 of file X509.php.
References phpseclib\File\X509\$AuthorityInfoAccessSyntax, phpseclib\File\X509\$AuthorityKeyIdentifier, phpseclib\File\X509\$BasicConstraints, phpseclib\File\X509\$CertificateIssuer, phpseclib\File\X509\$CertificatePolicies, phpseclib\File\X509\$CRLDistributionPoints, phpseclib\File\X509\$CRLNumber, phpseclib\File\X509\$CRLReason, phpseclib\File\X509\$DirectoryString, phpseclib\File\X509\$Extensions, phpseclib\File\X509\$ExtKeyUsageSyntax, phpseclib\File\X509\$HoldInstructionCode, phpseclib\File\X509\$InvalidityDate, phpseclib\File\X509\$IssuerAltName, phpseclib\File\X509\$IssuingDistributionPoint, phpseclib\File\X509\$KeyIdentifier, phpseclib\File\X509\$KeyUsage, phpseclib\File\X509\$NameConstraints, phpseclib\File\X509\$netscape_ca_policy_url, phpseclib\File\X509\$netscape_cert_type, phpseclib\File\X509\$netscape_comment, phpseclib\File\X509\$PKCS9String, phpseclib\File\X509\$PolicyMappings, phpseclib\File\X509\$PrivateKeyUsagePeriod, phpseclib\File\X509\$SubjectAltName, and phpseclib\File\X509\$UserNotice.
Referenced by phpseclib\File\X509\_mapInAttributes(), phpseclib\File\X509\_mapInExtensions(), phpseclib\File\X509\_mapOutAttributes(), and phpseclib\File\X509\_mapOutExtensions().
phpseclib\File\X509::_iPAddress | ( | $address | ) |
phpseclib\File\X509::_mapInAttributes | ( | & | $root, |
$path, | |||
$asn1 | |||
) |
Map attribute values from ANY type to attribute-specific internal format.
array | ref $root | |
string | $path | |
object | $asn1 | @access private |
Definition at line 1677 of file X509.php.
References $attributes, $i, $id, $map, $path, $root, $values, phpseclib\File\X509\_getMapping(), phpseclib\File\X509\_mapInExtensions(), and phpseclib\File\X509\_subArray().
Referenced by phpseclib\File\X509\loadCSR().
phpseclib\File\X509::_mapInExtensions | ( | & | $root, |
$path, | |||
$asn1 | |||
) |
Map extension values from octet string to extension-specific internal format.
array | ref $root | |
string | $path | |
object | $asn1 | @access private |
Definition at line 1561 of file X509.php.
References $i, $id, $map, $path, $root, phpseclib\File\X509\_getMapping(), and phpseclib\File\X509\_subArray().
Referenced by phpseclib\File\X509\_mapInAttributes(), phpseclib\File\X509\loadCRL(), and phpseclib\File\X509\loadX509().
phpseclib\File\X509::_mapOutAttributes | ( | & | $root, |
$path, | |||
$asn1 | |||
) |
Map attribute values from attribute-specific internal format to ANY type.
array | ref $root | |
string | $path | |
object | $asn1 | @access private |
Definition at line 1718 of file X509.php.
References $attributes, $i, $id, $map, $path, $root, $size, $values, phpseclib\File\X509\_getMapping(), phpseclib\File\X509\_mapOutExtensions(), and phpseclib\File\X509\_subArray().
Referenced by phpseclib\File\X509\saveCSR().
phpseclib\File\X509::_mapOutExtensions | ( | & | $root, |
$path, | |||
$asn1 | |||
) |
Map extension values from extension-specific internal format to octet string.
array | ref $root | |
string | $path | |
object | $asn1 | @access private |
Definition at line 1611 of file X509.php.
References $i, $id, $map, $path, $root, $size, phpseclib\File\X509\_getMapping(), phpseclib\File\X509\_subArray(), and phpseclib\File\ASN1\CLASS_CONTEXT_SPECIFIC.
Referenced by phpseclib\File\X509\_mapOutAttributes(), phpseclib\File\X509\saveCRL(), and phpseclib\File\X509\saveX509().
phpseclib\File\X509::_reformatKey | ( | $algorithm, | |
$key | |||
) |
Reformat public keys.
Reformats a public key to a format supported by phpseclib (if applicable)
string | $algorithm | |
string | $key | @access private |
Definition at line 2175 of file X509.php.
References $key.
Referenced by phpseclib\File\X509\loadCSR(), phpseclib\File\X509\loadSPKAC(), and phpseclib\File\X509\loadX509().
phpseclib\File\X509::_removeExtension | ( | $id, | |
$path = null |
|||
) |
Remove an Extension.
string | $id | |
string | $path | optional @access private |
Definition at line 3837 of file X509.php.
References $id, $key, $path, $result, and phpseclib\File\X509\_extensions().
Referenced by phpseclib\File\X509\removeExtension(), and phpseclib\File\X509\removeRevokedCertificateExtension().
phpseclib\File\X509::_revokedCertificate | ( | & | $rclist, |
$serial, | |||
$create = false |
|||
) |
Get the index of a revoked certificate.
array | $rclist | |
string | $serial | |
bool | $create | optional @access private |
Definition at line 4359 of file X509.php.
References $i, and phpseclib\File\X509\_timeField().
Referenced by phpseclib\File\X509\getRevoked(), phpseclib\File\X509\getRevokedCertificateExtension(), phpseclib\File\X509\getRevokedCertificateExtensions(), phpseclib\File\X509\removeRevokedCertificateExtension(), phpseclib\File\X509\revoke(), phpseclib\File\X509\setRevokedCertificateExtension(), and phpseclib\File\X509\unrevoke().
phpseclib\File\X509::_setExtension | ( | $id, | |
$value, | |||
$critical = false , |
|||
$replace = true , |
|||
$path = null |
|||
) |
Set an Extension.
string | $id | |
mixed | $value | |
bool | $critical | optional |
bool | $replace | optional |
string | $path | optional @access private |
Definition at line 3918 of file X509.php.
References $id, $key, $path, and phpseclib\File\X509\_extensions().
Referenced by phpseclib\File\X509\setExtension(), and phpseclib\File\X509\setRevokedCertificateExtension().
phpseclib\File\X509::_sign | ( | $key, | |
$signatureAlgorithm | |||
) |
X.509 certificate signing helper function.
object | $key | |
\phpseclib\File\X509 | $subject | |
string | $signatureAlgorithm | @access public |
Definition at line 3658 of file X509.php.
References phpseclib\File\X509\$currentCert, $key, and phpseclib\Crypt\RSA\SIGNATURE_PKCS1.
Referenced by phpseclib\File\X509\sign(), phpseclib\File\X509\signCRL(), phpseclib\File\X509\signCSR(), and phpseclib\File\X509\signSPKAC().
& phpseclib\File\X509::_subArray | ( | & | $root, |
$path, | |||
$create = false |
|||
) |
Get a reference to a subarray.
array | $root | |
string | $path | absolute path with / as component separator |
bool | $create | optional @access private |
Definition at line 3747 of file X509.php.
References $i, $path, and $root.
Referenced by phpseclib\File\X509\_extensions(), phpseclib\File\X509\_mapInAttributes(), phpseclib\File\X509\_mapInExtensions(), phpseclib\File\X509\_mapOutAttributes(), phpseclib\File\X509\_mapOutExtensions(), phpseclib\File\X509\getAttribute(), phpseclib\File\X509\getAttributes(), phpseclib\File\X509\getPublicKey(), phpseclib\File\X509\getRevoked(), phpseclib\File\X509\getRevokedCertificateExtension(), phpseclib\File\X509\getRevokedCertificateExtensions(), phpseclib\File\X509\listRevoked(), phpseclib\File\X509\loadCRL(), phpseclib\File\X509\removeAttribute(), phpseclib\File\X509\removeRevokedCertificateExtension(), phpseclib\File\X509\revoke(), phpseclib\File\X509\saveCRL(), phpseclib\File\X509\saveCSR(), phpseclib\File\X509\saveSPKAC(), phpseclib\File\X509\saveX509(), phpseclib\File\X509\setAttribute(), phpseclib\File\X509\setRevokedCertificateExtension(), and phpseclib\File\X509\unrevoke().
phpseclib\File\X509::_timeField | ( | $date | ) |
Helper function to build a time field according to RFC 3280 section.
string | $date | in format date('D, d M Y H:i:s O') @access private |
Definition at line 3201 of file X509.php.
Referenced by phpseclib\File\X509\_revokedCertificate(), phpseclib\File\X509\revoke(), phpseclib\File\X509\sign(), and phpseclib\File\X509\signCRL().
phpseclib\File\X509::_translateDNProp | ( | $propName | ) |
"Normalizes" a Distinguished Name property
string | $propName | @access private |
Definition at line 2228 of file X509.php.
Referenced by phpseclib\File\X509\getDNProp(), phpseclib\File\X509\removeDNProp(), and phpseclib\File\X509\setDNProp().
phpseclib\File\X509::_validateSignature | ( | $publicKeyAlgorithm, | |
$publicKey, | |||
$signatureAlgorithm, | |||
$signature, | |||
$signatureSubject | |||
) |
Validates a signature.
Returns true if the signature is verified, false if it is not correct or null on error
string | $publicKeyAlgorithm | |
string | $publicKey | |
string | $signatureAlgorithm | |
string | $signature | |
string | $signatureSubject | @access private |
Definition at line 2133 of file X509.php.
References phpseclib\File\X509\$publicKey, phpseclib\File\X509\$signatureSubject, and phpseclib\Crypt\RSA\SIGNATURE_PKCS1.
Referenced by phpseclib\File\X509\validateSignature().
phpseclib\File\X509::computeKeyIdentifier | ( | $key = null , |
|
$method = 1 |
|||
) |
Compute a public key identifier.
Although key identifiers may be set to any unique value, this function computes key identifiers from public key according to the two recommended methods (4.2.1.2 RFC 3280). Highly polymorphic: try to accept all possible forms of key:
mixed | $key | optional |
int | $method | optional @access public |
Definition at line 4205 of file X509.php.
References $key, phpseclib\File\X509\_extractBER(), phpseclib\File\X509\computeKeyIdentifier(), phpseclib\Crypt\RSA\PUBLIC_FORMAT_PKCS1, and phpseclib\File\ASN1\TYPE_BIT_STRING.
Referenced by phpseclib\File\X509\computeKeyIdentifier(), and phpseclib\File\X509\sign().
phpseclib\File\X509::getAttribute | ( | $id, | |
$disposition = self::ATTR_ALL , |
|||
$csr = null |
|||
) |
Get a CSR attribute.
Returns the attribute if it exists and false if not
string | $id | |
int | $disposition | optional |
array | $csr | optional @access public |
Definition at line 4056 of file X509.php.
References $attributes, phpseclib\File\X509\$currentCert, $id, $key, $n, phpseclib\File\X509\_subArray(), phpseclib\File\X509\ATTR_ALL, phpseclib\File\X509\ATTR_APPEND, and phpseclib\File\X509\ATTR_REPLACE.
phpseclib\File\X509::getAttributes | ( | $csr = null | ) |
Returns a list of all CSR attributes in use.
array | $csr | optional @access public |
Definition at line 4096 of file X509.php.
References $attributes, phpseclib\File\X509\$currentCert, and phpseclib\File\X509\_subArray().
phpseclib\File\X509::getChain | ( | ) |
Get the certificate chain for the current cert.
@access public
Definition at line 2705 of file X509.php.
References phpseclib\File\X509\$currentCert, $i, $key, and phpseclib\File\X509\getExtension().
phpseclib\File\X509::getDN | ( | $format = self::DN_ARRAY , |
|
$dn = null |
|||
) |
Get the Distinguished Name for a certificates subject.
mixed | $format | optional |
array | $dn | optional @access public |
Definition at line 2473 of file X509.php.
References phpseclib\File\X509\$dn, $format, $i, Sabre\VObject\$output, $result, $start, $type, phpseclib\File\X509\DN_ARRAY, phpseclib\File\X509\DN_ASN1, phpseclib\File\X509\DN_CANON, phpseclib\File\X509\DN_HASH, phpseclib\File\X509\DN_OPENSSL, phpseclib\File\X509\getDN(), PREG_SPLIT_DELIM_CAPTURE, and phpseclib\File\ASN1\TYPE_UTF8_STRING.
Referenced by phpseclib\File\X509\getDN(), phpseclib\File\X509\getIssuerDN(), and phpseclib\File\X509\getSubjectDN().
phpseclib\File\X509::getDNProp | ( | $propName, | |
$dn = null , |
|||
$withType = false |
|||
) |
Get Distinguished Name properties.
string | $propName | |
array | $dn | optional |
bool | $withType | optional |
Definition at line 2380 of file X509.php.
References phpseclib\File\X509\$dn, $i, $result, $s, $type, and phpseclib\File\X509\_translateDNProp().
Referenced by phpseclib\File\X509\getIssuerDNProp(), phpseclib\File\X509\getSubjectDNProp(), and phpseclib\File\X509\validateURL().
phpseclib\File\X509::getExtension | ( | $id, | |
$cert = null |
|||
) |
Get a certificate, CSR or CRL Extension.
Returns the extension if it exists and false if not
string | $id | |
array | $cert | optional @access public |
Definition at line 3965 of file X509.php.
References $id, and phpseclib\File\X509\_getExtension().
Referenced by phpseclib\File\X509\getChain(), phpseclib\File\X509\loadX509(), phpseclib\File\X509\sign(), phpseclib\File\X509\signCRL(), phpseclib\File\X509\validateSignature(), and phpseclib\File\X509\validateURL().
phpseclib\File\X509::getExtensions | ( | $cert = null | ) |
Returns a list of all extensions in use in certificate, CSR or CRL.
array | $cert | optional @access public |
Definition at line 3977 of file X509.php.
References phpseclib\File\X509\_getExtensions().
phpseclib\File\X509::getIssuerDN | ( | $format = self::DN_ARRAY | ) |
Get the Distinguished Name for a certificate/crl issuer.
int | $format | optional @access public |
Definition at line 2615 of file X509.php.
References $format, and phpseclib\File\X509\getDN().
phpseclib\File\X509::getIssuerDNProp | ( | $propName, | |
$withType = false |
|||
) |
Get an individual Distinguished Name property for a certificate/crl issuer.
string | $propName | |
bool | $withType | optional @access public |
Definition at line 2661 of file X509.php.
References phpseclib\File\X509\getDNProp().
phpseclib\File\X509::getOID | ( | $name | ) |
Returns the OID corresponding to a name.
What's returned in the associative array returned by loadX509() (or load*()) is either a name or an OID if no OID to name mapping is available. The problem with this is that what may be an unmapped OID in one version of phpseclib may not be unmapped in the next version, so apps that are looking at this OID may not be able to work from version to version.
This method will return the OID if a name is passed to it and if no mapping is avialable it'll assume that what's being passed to it already is an OID and return that instead. A few examples.
getOID('2.16.840.1.101.3.4.2.1') == '2.16.840.1.101.3.4.2.1' getOID('id-sha256') == '2.16.840.1.101.3.4.2.1' getOID('zzz') == 'zzz'
@access public
Definition at line 4609 of file X509.php.
References $name.
phpseclib\File\X509::getPublicKey | ( | ) |
Gets the public key.
Returns a \phpseclib\Crypt\RSA object or a false.
@access public
Definition at line 2793 of file X509.php.
References $key, $path, phpseclib\File\X509\$publicKey, and phpseclib\File\X509\_subArray().
phpseclib\File\X509::getRevoked | ( | $serial | ) |
Get a revoked certificate.
string | $serial | @access public |
Definition at line 4433 of file X509.php.
References $i, phpseclib\File\X509\_revokedCertificate(), and phpseclib\File\X509\_subArray().
phpseclib\File\X509::getRevokedCertificateExtension | ( | $serial, | |
$id, | |||
$crl = null |
|||
) |
Get a Revoked Certificate Extension.
Returns the extension if it exists and false if not
string | $serial | |
string | $id | |
array | $crl | optional @access public |
Definition at line 4502 of file X509.php.
References phpseclib\File\X509\$currentCert, $i, $id, phpseclib\File\X509\_getExtension(), phpseclib\File\X509\_revokedCertificate(), and phpseclib\File\X509\_subArray().
phpseclib\File\X509::getRevokedCertificateExtensions | ( | $serial, | |
$crl = null |
|||
) |
Returns a list of all extensions in use for a given revoked certificate.
string | $serial | |
array | $crl | optional @access public |
Definition at line 4525 of file X509.php.
References phpseclib\File\X509\$currentCert, $i, phpseclib\File\X509\_getExtensions(), phpseclib\File\X509\_revokedCertificate(), and phpseclib\File\X509\_subArray().
phpseclib\File\X509::getSubjectDN | ( | $format = self::DN_ARRAY | ) |
Get the Distinguished Name for a certificate/csr subject Alias of getDN()
int | $format | optional @access public |
Definition at line 2637 of file X509.php.
References $format, and phpseclib\File\X509\getDN().
phpseclib\File\X509::getSubjectDNProp | ( | $propName, | |
$withType = false |
|||
) |
Get an individual Distinguished Name property for a certificate/csr subject.
string | $propName | |
bool | $withType | optional @access public |
Definition at line 2683 of file X509.php.
References phpseclib\File\X509\getDNProp().
phpseclib\File\X509::listRevoked | ( | $crl = null | ) |
List revoked certificates.
array | $crl | optional @access public |
Definition at line 4451 of file X509.php.
References phpseclib\File\X509\$currentCert, $result, and phpseclib\File\X509\_subArray().
phpseclib\File\X509::loadCA | ( | $cert | ) |
Load an X.509 certificate as a certificate authority.
string | $cert | @access public |
Definition at line 1855 of file X509.php.
References phpseclib\File\X509\$currentCert, phpseclib\File\X509\$currentKeyIdentifier, phpseclib\File\X509\$dn, phpseclib\File\X509\$signatureSubject, and phpseclib\File\X509\loadX509().
phpseclib\File\X509::loadCRL | ( | $crl, | |
$mode = self::FORMAT_AUTO_DETECT |
|||
) |
Load a Certificate Revocation List.
string | $crl | @access public |
Definition at line 3078 of file X509.php.
References $i, phpseclib\File\X509\_extractBER(), phpseclib\File\X509\_mapInExtensions(), and phpseclib\File\X509\_subArray().
Referenced by phpseclib\File\X509\signCRL().
phpseclib\File\X509::loadCSR | ( | $csr, | |
$mode = self::FORMAT_AUTO_DETECT |
|||
) |
Load a Certificate Signing Request.
string | $csr | @access public |
Definition at line 2833 of file X509.php.
References $key, phpseclib\File\X509\_extractBER(), phpseclib\File\X509\_mapInAttributes(), and phpseclib\File\X509\_reformatKey().
Referenced by phpseclib\File\X509\signCSR().
phpseclib\File\X509::loadSPKAC | ( | $spkac | ) |
Load a SPKAC CSR.
SPKAC's are produced by the HTML5 keygen element:
https://developer.mozilla.org/en-US/docs/HTML/Element/keygen
string | $csr | @access public |
Definition at line 2964 of file X509.php.
References $key, and phpseclib\File\X509\_reformatKey().
Referenced by phpseclib\File\X509\signSPKAC().
phpseclib\File\X509::loadX509 | ( | $cert, | |
$mode = self::FORMAT_AUTO_DETECT |
|||
) |
Load X.509 certificate.
Returns an associative array describing the X.509 cert or a false if the cert failed to load
string | $cert | |
int | $mode | @access public |
Definition at line 1416 of file X509.php.
References phpseclib\File\X509\$currentKeyIdentifier, $key, phpseclib\File\X509\_extractBER(), phpseclib\File\X509\_mapInExtensions(), phpseclib\File\X509\_reformatKey(), and phpseclib\File\X509\getExtension().
Referenced by phpseclib\File\X509\loadCA(), and phpseclib\File\X509\sign().
phpseclib\File\X509::makeCA | ( | ) |
phpseclib\File\X509::removeAttribute | ( | $id, | |
$disposition = self::ATTR_ALL |
|||
) |
Remove a CSR attribute.
string | $id | |
int | $disposition | optional @access public |
Definition at line 4005 of file X509.php.
References $attributes, $id, $key, $n, $result, phpseclib\File\X509\_subArray(), phpseclib\File\X509\ATTR_ALL, phpseclib\File\X509\ATTR_APPEND, and phpseclib\File\X509\ATTR_REPLACE.
Referenced by phpseclib\File\X509\setAttribute().
phpseclib\File\X509::removeDNProp | ( | $propName | ) |
Remove Distinguished Name properties.
string | $propName | @access public |
Definition at line 2350 of file X509.php.
References phpseclib\File\X509\$dn, $i, $size, and phpseclib\File\X509\_translateDNProp().
Referenced by phpseclib\File\X509\setDomain().
phpseclib\File\X509::removeExtension | ( | $id | ) |
Remove a certificate, CSR or CRL Extension.
string | $id | @access public |
Definition at line 3950 of file X509.php.
References $id, and phpseclib\File\X509\_removeExtension().
Referenced by phpseclib\File\X509\sign(), and phpseclib\File\X509\signCRL().
phpseclib\File\X509::removeRevokedCertificateExtension | ( | $serial, | |
$id | |||
) |
Remove a Revoked Certificate Extension.
string | $serial | |
string | $id | @access public |
Definition at line 4480 of file X509.php.
References $i, $id, phpseclib\File\X509\_removeExtension(), phpseclib\File\X509\_revokedCertificate(), and phpseclib\File\X509\_subArray().
phpseclib\File\X509::revoke | ( | $serial, | |
$date = null |
|||
) |
Revoke a certificate.
string | $serial | |
string | $date | optional @access public |
Definition at line 4387 of file X509.php.
References $i, phpseclib\File\X509\_revokedCertificate(), phpseclib\File\X509\_subArray(), and phpseclib\File\X509\_timeField().
phpseclib\File\X509::saveCRL | ( | $crl, | |
$format = self::FORMAT_PEM |
|||
) |
Save Certificate Revocation List.
array | $crl | |
int | $format | optional @access public |
Definition at line 3140 of file X509.php.
References $format, $i, phpseclib\File\X509\_mapOutExtensions(), phpseclib\File\X509\_subArray(), phpseclib\File\X509\FORMAT_DER, phpseclib\File\ASN1\TYPE_NULL, and phpseclib\File\ASN1\TYPE_UTF8_STRING.
Referenced by phpseclib\File\X509\signCRL().
phpseclib\File\X509::saveCSR | ( | $csr, | |
$format = self::FORMAT_PEM |
|||
) |
Save CSR request.
array | $csr | |
int | $format | optional @access public |
Definition at line 2913 of file X509.php.
References $format, phpseclib\File\X509\_mapOutAttributes(), phpseclib\File\X509\_subArray(), phpseclib\File\X509\FORMAT_DER, and phpseclib\File\ASN1\TYPE_UTF8_STRING.
Referenced by phpseclib\File\X509\signCSR().
phpseclib\File\X509::saveSPKAC | ( | $spkac, | |
$format = self::FORMAT_PEM |
|||
) |
Save a SPKAC CSR request.
array | $csr | |
int | $format | optional @access public |
Definition at line 3036 of file X509.php.
References $format, phpseclib\File\X509\_subArray(), and phpseclib\File\X509\FORMAT_DER.
Referenced by phpseclib\File\X509\signSPKAC().
phpseclib\File\X509::saveX509 | ( | $cert, | |
$format = self::FORMAT_PEM |
|||
) |
Save X.509 certificate.
array | $cert | |
int | $format | optional @access public |
Definition at line 1485 of file X509.php.
References $format, phpseclib\File\X509\_mapOutExtensions(), phpseclib\File\X509\_subArray(), phpseclib\File\X509\FORMAT_DER, phpseclib\File\ASN1\TYPE_IA5_STRING, and phpseclib\File\ASN1\TYPE_UTF8_STRING.
Referenced by phpseclib\File\X509\sign().
phpseclib\File\X509::setAttribute | ( | $id, | |
$value, | |||
$disposition = self::ATTR_ALL |
|||
) |
Set a CSR attribute.
string | $id | |
mixed | $value | |
bool | $disposition | optional @access public |
Definition at line 4123 of file X509.php.
References $attributes, $id, $key, $n, phpseclib\File\X509\_subArray(), phpseclib\File\X509\ATTR_ALL, phpseclib\File\X509\ATTR_APPEND, phpseclib\File\X509\ATTR_REPLACE, and phpseclib\File\X509\removeAttribute().
phpseclib\File\X509::setChallenge | ( | $challenge | ) |
Set challenge.
Used for SPKAC CSR's
string | $challenge | @access public |
Definition at line 2780 of file X509.php.
References phpseclib\File\X509\$challenge.
phpseclib\File\X509::setDN | ( | $dn, | |
$merge = false , |
|||
$type = 'utf8String' |
|||
) |
Set a Distinguished Name.
mixed | $dn | |
bool | $merge | optional |
string | $type | optional @access public |
Definition at line 2431 of file X509.php.
References phpseclib\File\X509\$dn, $i, $results, $type, PREG_SPLIT_DELIM_CAPTURE, and phpseclib\File\X509\setDNProp().
phpseclib\File\X509::setDNProp | ( | $propName, | |
$propValue, | |||
$type = 'utf8String' |
|||
) |
Set a Distinguished Name property.
string | $propName | |
mixed | $propValue | |
string | $type | optional @access public |
Definition at line 2319 of file X509.php.
References $type, and phpseclib\File\X509\_translateDNProp().
Referenced by phpseclib\File\X509\setDN(), and phpseclib\File\X509\setDomain().
phpseclib\File\X509::setDomain | ( | ) |
Set the domain name's which the cert is to be valid for.
@access public
Definition at line 4300 of file X509.php.
References phpseclib\File\X509\removeDNProp(), and phpseclib\File\X509\setDNProp().
phpseclib\File\X509::setEndDate | ( | $date | ) |
Set certificate end date.
string | $date | @access public |
Definition at line 3697 of file X509.php.
References phpseclib\File\ASN1\TYPE_GENERALIZED_TIME.
phpseclib\File\X509::setExtension | ( | $id, | |
$value, | |||
$critical = false , |
|||
$replace = true |
|||
) |
Set a certificate, CSR or CRL Extension.
string | $id | |
mixed | $value | |
bool | $critical | optional |
bool | $replace | optional @access public |
Definition at line 3992 of file X509.php.
References $id, and phpseclib\File\X509\_setExtension().
Referenced by phpseclib\File\X509\sign(), and phpseclib\File\X509\signCRL().
phpseclib\File\X509::setIPAddress | ( | ) |
Set the IP Addresses's which the cert is to be valid for.
@access public
string | $ipAddress | optional |
Definition at line 4313 of file X509.php.
phpseclib\File\X509::setKeyIdentifier | ( | $value | ) |
Sets the subject key identifier.
This is used by the id-ce-authorityKeyIdentifier and the id-ce-subjectKeyIdentifier extensions.
string | $value | @access public |
Definition at line 4178 of file X509.php.
phpseclib\File\X509::setPrivateKey | ( | $key | ) |
phpseclib\File\X509::setPublicKey | ( | $key | ) |
phpseclib\File\X509::setRevokedCertificateExtension | ( | $serial, | |
$id, | |||
$value, | |||
$critical = false , |
|||
$replace = true |
|||
) |
Set a Revoked Certificate Extension.
string | $serial | |
string | $id | |
mixed | $value | |
bool | $critical | optional |
bool | $replace | optional @access public |
Definition at line 4551 of file X509.php.
References $i, $id, phpseclib\File\X509\_revokedCertificate(), phpseclib\File\X509\_setExtension(), and phpseclib\File\X509\_subArray().
phpseclib\File\X509::setSerialNumber | ( | $serial, | |
$base = -256 |
|||
) |
phpseclib\File\X509::setStartDate | ( | $date | ) |
phpseclib\File\X509::sign | ( | $issuer, | |
$subject, | |||
$signatureAlgorithm = 'sha1WithRSAEncryption' |
|||
) |
Sign an X.509 certificate.
$issuer's private key needs to be loaded. $subject can be either an existing X.509 cert (if you want to resign it), a CSR or something with the DN and public key explicitly set.
\phpseclib\File\X509 | $issuer | |
\phpseclib\File\X509 | $subject | |
string | $signatureAlgorithm | optional @access public |
Definition at line 3224 of file X509.php.
References phpseclib\File\X509\$currentCert, phpseclib\File\X509\$endDate, $issuer, $result, phpseclib\File\X509\$serialNumber, phpseclib\File\X509\$signatureSubject, phpseclib\File\X509\$startDate, phpseclib\File\X509\_sign(), phpseclib\File\X509\_timeField(), phpseclib\File\X509\computeKeyIdentifier(), phpseclib\File\X509\getExtension(), phpseclib\File\X509\loadX509(), phpseclib\File\X509\removeExtension(), phpseclib\File\X509\saveX509(), phpseclib\File\X509\setExtension(), and phpseclib\Crypt\Random\string().
phpseclib\File\X509::signCRL | ( | $issuer, | |
$crl, | |||
$signatureAlgorithm = 'sha1WithRSAEncryption' |
|||
) |
Sign a CRL.
$issuer's private key needs to be loaded.
\phpseclib\File\X509 | $issuer | |
\phpseclib\File\X509 | $crl | |
string | $signatureAlgorithm | optional @access public |
Definition at line 3529 of file X509.php.
References phpseclib\File\X509\$currentCert, $issuer, $result, phpseclib\File\X509\$serialNumber, phpseclib\File\X509\$signatureSubject, $version, phpseclib\File\X509\_sign(), phpseclib\File\X509\_timeField(), phpseclib\File\X509\getExtension(), phpseclib\File\X509\loadCRL(), phpseclib\File\X509\removeExtension(), phpseclib\File\X509\saveCRL(), and phpseclib\File\X509\setExtension().
phpseclib\File\X509::signCSR | ( | $signatureAlgorithm = 'sha1WithRSAEncryption' | ) |
Sign a CSR.
@access public
Definition at line 3401 of file X509.php.
References phpseclib\File\X509\$currentCert, phpseclib\File\X509\$dn, phpseclib\File\X509\$publicKey, $result, phpseclib\File\X509\$signatureSubject, phpseclib\File\X509\_formatSubjectPublicKey(), phpseclib\File\X509\_sign(), phpseclib\File\X509\loadCSR(), and phpseclib\File\X509\saveCSR().
phpseclib\File\X509::signSPKAC | ( | $signatureAlgorithm = 'sha1WithRSAEncryption' | ) |
Sign a SPKAC.
@access public
Definition at line 3459 of file X509.php.
References phpseclib\File\X509\$currentCert, phpseclib\File\X509\$publicKey, $result, phpseclib\File\X509\$signatureSubject, phpseclib\File\X509\_formatSubjectPublicKey(), phpseclib\File\X509\_sign(), phpseclib\File\X509\loadSPKAC(), and phpseclib\File\X509\saveSPKAC().
phpseclib\File\X509::unrevoke | ( | $serial | ) |
Unrevoke a certificate.
string | $serial | @access public |
Definition at line 4413 of file X509.php.
References $i, phpseclib\File\X509\_revokedCertificate(), and phpseclib\File\X509\_subArray().
phpseclib\File\X509::validateDate | ( | $date = null | ) |
Validate a date.
If $date isn't defined it is assumed to be the current date.
int | $date | optional @access public |
Definition at line 1979 of file X509.php.
phpseclib\File\X509::validateSignature | ( | $caonly = true | ) |
Validate a signature.
Works on X.509 certs, CSR's and CRL's. Returns true if the signature is verified, false if it is not correct or null on error
By default returns false for self-signed certs. Call validateSignature(false) to make this support self-signed.
The behavior of this function is inspired by openssl_verify
.
bool | $caonly | optional @access public |
Definition at line 2019 of file X509.php.
References phpseclib\File\X509\$currentCert, $i, phpseclib\File\X509\_validateSignature(), and phpseclib\File\X509\getExtension().
phpseclib\File\X509::validateURL | ( | $url | ) |
Validate an X.509 certificate against a URL.
From RFC2818 "HTTP over TLS":
Matching is performed using the matching rules specified by [RFC2459]. If more than one identity of a given type is present in the certificate (e.g., more than one dNSName name, a match in any one of the set is considered acceptable.) Names may contain the wildcard character * which is considered to match any single domain name component or component fragment. E.g., *.a.com matches foo.a.com but not bar.foo.a.com. f*.com matches foo.com but not bar.com.
string | $url | @access public |
Definition at line 1922 of file X509.php.
References $key, $url, phpseclib\File\X509\getDNProp(), and phpseclib\File\X509\getExtension().
phpseclib\File\X509::$AuthorityInfoAccessSyntax |
Definition at line 146 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$AuthorityKeyIdentifier |
Definition at line 144 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$BasicConstraints |
Definition at line 141 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$CertificateIssuer |
Definition at line 166 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$CertificatePolicies |
Definition at line 145 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$challenge |
Definition at line 296 of file X509.php.
Referenced by phpseclib\File\X509\setChallenge().
phpseclib\File\X509::$CRLDistributionPoints |
Definition at line 143 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$CRLNumber |
Definition at line 162 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$CRLReason |
Definition at line 163 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$currentCert |
Definition at line 234 of file X509.php.
Referenced by phpseclib\File\X509\_extensions(), phpseclib\File\X509\_sign(), phpseclib\File\X509\getAttribute(), phpseclib\File\X509\getAttributes(), phpseclib\File\X509\getChain(), phpseclib\File\X509\getRevokedCertificateExtension(), phpseclib\File\X509\getRevokedCertificateExtensions(), phpseclib\File\X509\listRevoked(), phpseclib\File\X509\loadCA(), phpseclib\File\X509\sign(), phpseclib\File\X509\signCRL(), phpseclib\File\X509\signCSR(), phpseclib\File\X509\signSPKAC(), and phpseclib\File\X509\validateSignature().
phpseclib\File\X509::$currentKeyIdentifier |
Definition at line 280 of file X509.php.
Referenced by phpseclib\File\X509\loadCA(), and phpseclib\File\X509\loadX509().
phpseclib\File\X509::$DirectoryString |
#+ ASN.1 syntax for various extensions
@access private
Definition at line 135 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$dn |
Definition at line 193 of file X509.php.
Referenced by phpseclib\File\X509\getDN(), phpseclib\File\X509\getDNProp(), phpseclib\File\X509\loadCA(), phpseclib\File\X509\removeDNProp(), phpseclib\File\X509\setDN(), and phpseclib\File\X509\signCSR().
phpseclib\File\X509::$endDate |
Definition at line 261 of file X509.php.
Referenced by phpseclib\File\X509\sign().
phpseclib\File\X509::$Extensions |
Definition at line 138 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$ExtKeyUsageSyntax |
Definition at line 140 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$HoldInstructionCode |
Definition at line 167 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$InvalidityDate |
Definition at line 165 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$IssuerAltName |
Definition at line 149 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$IssuingDistributionPoint |
Definition at line 164 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$KeyIdentifier |
Definition at line 142 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$KeyUsage |
Definition at line 139 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$NameConstraints |
Definition at line 151 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$netscape_ca_policy_url |
Definition at line 158 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$netscape_cert_type |
Definition at line 156 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$netscape_comment |
Definition at line 157 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$PKCS9String |
Definition at line 136 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$PolicyMappings |
Definition at line 150 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$PrivateKeyUsagePeriod |
Definition at line 148 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$publicKey |
Definition at line 201 of file X509.php.
Referenced by phpseclib\File\X509\_validateSignature(), phpseclib\File\X509\getPublicKey(), phpseclib\File\X509\signCSR(), and phpseclib\File\X509\signSPKAC().
phpseclib\File\X509::$serialNumber |
Definition at line 269 of file X509.php.
Referenced by phpseclib\File\X509\sign(), and phpseclib\File\X509\signCRL().
phpseclib\File\X509::$signatureSubject |
Definition at line 245 of file X509.php.
Referenced by phpseclib\File\X509\_validateSignature(), phpseclib\File\X509\loadCA(), phpseclib\File\X509\sign(), phpseclib\File\X509\signCRL(), phpseclib\File\X509\signCSR(), and phpseclib\File\X509\signSPKAC().
phpseclib\File\X509::$startDate |
Definition at line 253 of file X509.php.
Referenced by phpseclib\File\X509\sign().
phpseclib\File\X509::$SubjectAltName |
Definition at line 147 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
phpseclib\File\X509::$UserNotice |
Definition at line 154 of file X509.php.
Referenced by phpseclib\File\X509\_getMapping().
const phpseclib\File\X509::ATTR_ALL = -1 |
#-
Attribute value disposition. If disposition is >= 0, this is the index of the target value.
Definition at line 118 of file X509.php.
Referenced by phpseclib\File\X509\getAttribute(), phpseclib\File\X509\removeAttribute(), and phpseclib\File\X509\setAttribute().
const phpseclib\File\X509::ATTR_APPEND = -2 |
Definition at line 119 of file X509.php.
Referenced by phpseclib\File\X509\getAttribute(), phpseclib\File\X509\removeAttribute(), and phpseclib\File\X509\setAttribute().
const phpseclib\File\X509::ATTR_REPLACE = -3 |
Definition at line 120 of file X509.php.
Referenced by phpseclib\File\X509\getAttribute(), phpseclib\File\X509\removeAttribute(), and phpseclib\File\X509\setAttribute().
const phpseclib\File\X509::DN_ARRAY = 0 |
#+ @access public
Definition at line 61 of file X509.php.
Referenced by phpseclib\File\X509\getDN().
const phpseclib\File\X509::DN_ASN1 = 2 |
Return ASN.1 name string.
Definition at line 69 of file X509.php.
Referenced by phpseclib\File\X509\getDN().
const phpseclib\File\X509::DN_CANON = 4 |
Return canonical ASN.1 RDNs string.
Definition at line 77 of file X509.php.
Referenced by phpseclib\File\X509\getDN().
const phpseclib\File\X509::DN_HASH = 5 |
Return name hash for file indexing.
Definition at line 81 of file X509.php.
Referenced by phpseclib\File\X509\getDN().
const phpseclib\File\X509::DN_OPENSSL = 3 |
Return OpenSSL compatible array.
Definition at line 73 of file X509.php.
Referenced by phpseclib\File\X509\getDN().
const phpseclib\File\X509::FORMAT_AUTO_DETECT = 3 |
const phpseclib\File\X509::FORMAT_DER = 1 |
Save as DER.
Definition at line 99 of file X509.php.
Referenced by phpseclib\File\X509\saveCRL(), phpseclib\File\X509\saveCSR(), phpseclib\File\X509\saveSPKAC(), and phpseclib\File\X509\saveX509().
const phpseclib\File\X509::FORMAT_PEM = 0 |
const phpseclib\File\X509::FORMAT_SPKAC = 2 |
const phpseclib\File\X509::VALIDATE_SIGNATURE_BY_CA = 1 |