![]() |
![]()
| ![]() |
![]()
NameOpenXPKI::Crypt::PKCS10 DescriptionHelper class to extract information from a PKCS10 request. Expects PEM encoded data with headers or raw binary as single argument to new. MethodsdataThe request binary data. pemThe PEM encoded request, 64 chars per line, with header and footer lines. get_subjectThe subject (full DN) of the request as string as defined in RFC2253 get_subject_key_idSha1 hash of the DER encoded public key. Uppercase hexadecimal with bytes separated by a colon, e.g. A1:B2:C3.... get_pub_keyReturn the public key from the request in binary format get_csr_identifierSame value as the transaction_id but encoded with base64 with "urlsafe" encoding (+\ replaced by -_) as also used for the cert_identifier. get_transaction_idReturn the transaction_id of which is defined as the sha1 hash over the DER encoded request in hexadecimal format. get_digestReturn the digest of the raw request which is defined as the sha1 hash over the DER encoded "inner" request without the signature parts given in hexadecimal format. Note: While an RSA request has a deterministic signature and creates an overall identical binary each time you create a CSRs from the same data the signature of an ECC request contains a random number so the "outer" hash will change if a client recreates a CSRs.
|