Class: R509::Cert::Extensions::AuthorityKeyIdentifier
- Inherits:
-
OpenSSL::X509::Extension
- Object
- OpenSSL::X509::Extension
- R509::Cert::Extensions::AuthorityKeyIdentifier
- Defined in:
- lib/r509/cert/extensions/authority_key_identifier.rb
Overview
RFC 5280 Description (see: www.ietf.org/rfc/rfc5280.txt)
The authority key identifier extension provides a means of identifying the public key corresponding to the private key used to sign a certificate. This extension is used where an issuer has multiple signing keys (either due to multiple concurrent key pairs or due to changeover). The identification MAY be based on either the key identifier (the subject key identifier in the issuer's certificate) or the issuer name and serial number.
You can use this extension to parse an existing extension for easy access to the contents or create a new one.
Constant Summary
- OID =
friendly name for Authority Key Identifier OID
"authorityKeyIdentifier"
- AKI_EXTENSION_DEFAULT =
default extension behavior when generating
"keyid"
Instance Attribute Summary collapse
-
#authority_cert_issuer ⇒ R509::ASN1::GeneralName?
readonly
authority_cert_issuer, if present, will be a GeneralName object.
-
#authority_cert_serial_number ⇒ String?
readonly
authority_cert_serial_number, if present, will be a hex string delimited by colons.
-
#key_identifier ⇒ String?
readonly
key_identifier, if present, will be a hex string delimited by colons.
Instance Method Summary collapse
-
#initialize(arg) ⇒ AuthorityKeyIdentifier
constructor
A new instance of AuthorityKeyIdentifier.
Constructor Details
#initialize(arg) ⇒ AuthorityKeyIdentifier
Returns a new instance of AuthorityKeyIdentifier
40 41 42 43 44 45 46 47 |
# File 'lib/r509/cert/extensions/authority_key_identifier.rb', line 40 def initialize(arg) unless R509::Cert::Extensions.is_extension?(arg) arg = build_extension(arg) end super(arg) parse_extension end |
Instance Attribute Details
#authority_cert_issuer ⇒ R509::ASN1::GeneralName? (readonly)
authority_cert_issuer, if present, will be a GeneralName object
30 31 32 |
# File 'lib/r509/cert/extensions/authority_key_identifier.rb', line 30 def @authority_cert_issuer end |
#authority_cert_serial_number ⇒ String? (readonly)
authority_cert_serial_number, if present, will be a hex string delimited by colons
33 34 35 |
# File 'lib/r509/cert/extensions/authority_key_identifier.rb', line 33 def @authority_cert_serial_number end |
#key_identifier ⇒ String? (readonly)
key_identifier, if present, will be a hex string delimited by colons
27 28 29 |
# File 'lib/r509/cert/extensions/authority_key_identifier.rb', line 27 def key_identifier @key_identifier end |