Class: IControl::Management::OCSPResponder
- Inherits:
-
Base
- Object
- Base
- IControl::Management::OCSPResponder
- Defined in:
- lib/icontrol/management/ocsp_responder.rb,
lib/icontrol/management.rb
Overview
The OCSPResponder interface enables you to manage OCSP responder configuration.
Defined Under Namespace
Classes: ResponderDefinition, ResponderDefinitionSequence, SignInformation, SignInformationSequence
Instance Method Summary (collapse)
-
- (EnabledState) allow_additional_certificate_state
Gets the states that that indicate whether to allow the addition of certificates to the OCSP request.
-
- (String) ca_file
Gets the names of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
-
- (String) ca_path
Gets the paths of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
-
- (EnabledState) certificate_check_state
Gets the states that indicate whether to perform any additional checks on the OCSP response signers certificate.
-
- (OCSPDigestMethod) certificate_id_digest_method
Gets the digest algorithm for hashing the certificate information used to create the certificate ID that is sent to the responder.
-
- (EnabledState) certificate_verification_state
Gets the states that indicate whether to check the certificates in the OCSP responses.
-
- (EnabledState) chain_state
Gets the states that indicate whether to use certificates in the response as additional untrusted CA certificates.
-
- (Object) create
Creates this OCSP responder.
-
- (Object) delete_all_responders
Deletes all OCSP responder.
-
- (Object) delete_responder
Deletes this OCSP responder.
-
- (EnabledState) explicit_state
Gets the states that indicate whether to explicitly trust the OCSP response signers certificate as authorized for OCSP response signing.
-
- (EnabledState) ignore_aia_state
Gets the states that if true, then always use the URL specified in the configuration file, and ignore any URL contained in the client certificates' authorityInfoAccess OCSP field.
-
- (EnabledState) intern_state
Gets the states that that indicate whether to ignore certificates contained in the OCSP response when searching for the signers certificate.
-
- (String) list
Gets a list of all OCSP responder.
-
- (EnabledState) nonce_state
Gets the state that indicates whether to send a nonce in the OCSP request.
-
- (String) other_certificate_file
Gets the files containing additional certificates to search when attempting to locate the OCSP response signing certificate.
-
- (Object) set_allow_additional_certificate_state(opts)
Sets the states that indicate whether to allow the addition of certificates to the OCSP request.
-
- (Object) set_ca_file(opts)
Sets the names of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
-
- (Object) set_ca_path(opts)
Sets the paths of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
-
- (Object) set_certificate_check_state(opts)
Sets the states that indicate whether to perform any additional checks on the OCSP response signers certificate.
-
- (Object) set_certificate_id_digest_method(opts)
Sets the digest algorithm for hashing the certificate information used to create the certificate ID that is sent to the responder.
-
- (Object) set_certificate_verification_state(opts)
Sets the states that indicate whether to check the certificates in the OCSP responses.
-
- (Object) set_chain_state(opts)
Sets the states that indicate whether to use certificates in the response as additional untrusted CA certificates.
-
- (Object) set_explicit_state(opts)
Sets the states that indicate whether to explicitly trust the OCSP response signers certificate as authorized for OCSP response signing.
-
- (Object) set_ignore_aia_state(opts)
Sets the states that if true, then always use the URL specified in the configuration file, and ignore any URL contained in the client certificates' authorityInfoAccess OCSP field.
-
- (Object) set_intern_state(opts)
Sets the states that indicate whether to ignore certificates contained in the OCSP response when searching for the signers certificate.
-
- (Object) set_nonce_state(opts)
Sets the state that indicates whether to send a nonce in the OCSP request.
-
- (Object) set_other_certificate_file(opts)
Sets the files containing additional certificates to search when attempting to locate the OCSP response signing certificate.
-
- (Object) set_signature_verification_state(opts)
Sets the states that indicate whether to check the signature on the OCSP response.
-
- (Object) set_signing_information(opts)
Sets the signing information necessary to sign the OCSP requests.
-
- (Object) set_status_age(opts)
Sets the status ages (sec) for the OCSP response.
-
- (Object) set_trust_other_certificate_state(opts)
Sets the states indicating whether to be explicitly trust the other certificates specified via set_other_certificate_file and no additional checks will be performed on them.
-
- (Object) set_url(opts)
Sets the URLs of the responder.
-
- (Object) set_va_file(opts)
Sets the files containing explicitly trusted responder certificates.
-
- (Object) set_validity_period(opts)
Sets the range of times, in seconds, which will be tolerated in an OCSP response.
-
- (Object) set_verification_state(opts)
Sets the states that indicate whether to attempt to verify the OCSP response signature or the nonce values.
-
- (EnabledState) signature_verification_state
Gets the states that indicate whether to check the signature on the OCSP response.
-
- (SignInformation) signing_information
Gets the signing information necessary to sign the OCSP requests.
-
- (long) status_age
Gets the status ages (sec) for the OCSP response.
-
- (EnabledState) trust_other_certificate_state
Gets the states indicating whether to be explicitly trust the other certificates specified via set_other_certificate_file and no additional checks will be performed on them.
-
- (String) url
Gets the URL or hostnames of the responder.
-
- (String) va_file
Gets the files containing explicitly trusted responder certificates.
-
- (long) validity_period
Gets the range of times, in seconds, which will be tolerated in an OCSP response.
-
- (EnabledState) verification_state
Gets the states that indicate whether to attempt to verify the OCSP response signature or the nonce values.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (EnabledState) allow_additional_certificate_state
Gets the states that that indicate whether to allow the addition of certificates to the OCSP request. This option should normally only be used for testing purposes.
49 50 51 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 49 def allow_additional_certificate_state super end |
- (String) ca_file
Gets the names of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
61 62 63 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 61 def ca_file super end |
- (String) ca_path
Gets the paths of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
73 74 75 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 73 def ca_path super end |
- (EnabledState) certificate_check_state
Gets the states that indicate whether to perform any additional checks on the OCSP response signers certificate. If false, do not make any checks to see if the signers certificate is authorized to provide the necessary status information: as a result this option should only be used for testing purposes.
87 88 89 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 87 def certificate_check_state super end |
- (OCSPDigestMethod) certificate_id_digest_method
Gets the digest algorithm for hashing the certificate information used to create the certificate ID that is sent to the responder.
99 100 101 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 99 def certificate_id_digest_method super end |
- (EnabledState) certificate_verification_state
Gets the states that indicate whether to check the certificates in the OCSP responses.
110 111 112 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 110 def certificate_verification_state super end |
- (EnabledState) chain_state
Gets the states that indicate whether to use certificates in the response as additional untrusted CA certificates.
122 123 124 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 122 def chain_state super end |
- (Object) create
Creates this OCSP responder.
17 18 19 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 17 def create super end |
- (Object) delete_all_responders
Deletes all OCSP responder.
27 28 29 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 27 def delete_all_responders super end |
- (Object) delete_responder
Deletes this OCSP responder.
37 38 39 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 37 def delete_responder super end |
- (EnabledState) explicit_state
Gets the states that indicate whether to explicitly trust the OCSP response signers certificate as authorized for OCSP response signing. Specifying this option causes a response to be untrusted if the signers certificate does not contain the "OCSPSigning" extension.
136 137 138 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 136 def explicit_state super end |
- (EnabledState) ignore_aia_state
Gets the states that if true, then always use the URL specified in the configuration file, and ignore any URL contained in the client certificates' authorityInfoAccess OCSP field. If this option is not set (the default) AND the client certificate has a valid AIA OCSP field set, then first attempt to connect to the responder in the client's AIA OCSP field, and fall back to the URL in the responder definition if that server is not available. See RFC2560 for more detail of the authorityInfoAccess x509 extension and its intended usage.
153 154 155 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 153 def ignore_aia_state super end |
- (EnabledState) intern_state
Gets the states that that indicate whether to ignore certificates contained in the OCSP response when searching for the signers certificate. With this option the signers certificate must be specified with either the -verify_certs or -VAfile options.
166 167 168 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 166 def intern_state super end |
- (String) list
Gets a list of all OCSP responder.
177 178 179 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 177 def list super end |
- (EnabledState) nonce_state
Gets the state that indicates whether to send a nonce in the OCSP request.
188 189 190 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 188 def nonce_state super end |
- (String) other_certificate_file
Gets the files containing additional certificates to search when attempting to locate the OCSP response signing certificate. Some responder omit the actual signer's certificates from the response: this option can be used to supply the necessary certificates in such cases.
202 203 204 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 202 def other_certificate_file super end |
- (Object) set_allow_additional_certificate_state(opts)
Sets the states that indicate whether to allow the addition of certificates to the OCSP request. This option should normally only be used for testing purposes.
330 331 332 333 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 330 def set_allow_additional_certificate_state(opts) check_params(opts,[:states]) super end |
- (Object) set_ca_file(opts)
Sets the names of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
344 345 346 347 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 344 def set_ca_file(opts) check_params(opts,[:ca_files]) super end |
- (Object) set_ca_path(opts)
Sets the paths of the trusted CA certificates used by the responder to verify the signature on the OCSP response.
358 359 360 361 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 358 def set_ca_path(opts) check_params(opts,[:ca_paths]) super end |
- (Object) set_certificate_check_state(opts)
Sets the states that indicate whether to perform any additional checks on the OCSP response signers certificate. If false, do not make any checks to see if the signers certificate is authorized to provide the necessary status information: as a result this option should only be used for testing purposes.
374 375 376 377 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 374 def set_certificate_check_state(opts) check_params(opts,[:states]) super end |
- (Object) set_certificate_id_digest_method(opts)
Sets the digest algorithm for hashing the certificate information used to create the certificate ID that is sent to the responder.
388 389 390 391 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 388 def set_certificate_id_digest_method(opts) check_params(opts,[:digest_methods]) super end |
- (Object) set_certificate_verification_state(opts)
Sets the states that indicate whether to check the certificates in the OCSP responses.
401 402 403 404 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 401 def set_certificate_verification_state(opts) check_params(opts,[:states]) super end |
- (Object) set_chain_state(opts)
Sets the states that indicate whether to use certificates in the response as additional untrusted CA certificates.
415 416 417 418 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 415 def set_chain_state(opts) check_params(opts,[:states]) super end |
- (Object) set_explicit_state(opts)
Sets the states that indicate whether to explicitly trust the OCSP response signers certificate as authorized for OCSP response signing. Specifying this option causes a response to be untrusted if the signers certificate does not contain the "OCSPSigning" extension.
431 432 433 434 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 431 def set_explicit_state(opts) check_params(opts,[:states]) super end |
- (Object) set_ignore_aia_state(opts)
Sets the states that if true, then always use the URL specified in the configuration file, and ignore any URL contained in the client certificates' authorityInfoAccess OCSP field. If this option is not set (the default) AND the client certificate has a valid AIA OCSP field set, then first attempt to connect to the responder in the client's AIA OCSP field, and fall back to the URL in the responder definition if that server is not available. See RFC2560 for more detail of the authorityInfoAccess x509 extension and its intended usage.
450 451 452 453 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 450 def set_ignore_aia_state(opts) check_params(opts,[:states]) super end |
- (Object) set_intern_state(opts)
Sets the states that indicate whether to ignore certificates contained in the OCSP response when searching for the signers certificate. With this option the signers certificate must be specified with either the -verify_certs or -VAfile options.
465 466 467 468 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 465 def set_intern_state(opts) check_params(opts,[:states]) super end |
- (Object) set_nonce_state(opts)
Sets the state that indicates whether to send a nonce in the OCSP request.
478 479 480 481 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 478 def set_nonce_state(opts) check_params(opts,[:states]) super end |
- (Object) set_other_certificate_file(opts)
Sets the files containing additional certificates to search when attempting to locate the OCSP response signing certificate. Some responder omit the actual signer's certificates from the response: this option can be used to supply the necessary certificates in such cases.
494 495 496 497 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 494 def set_other_certificate_file(opts) check_params(opts,[:other_files]) super end |
- (Object) set_signature_verification_state(opts)
Sets the states that indicate whether to check the signature on the OCSP response. Since this option tolerates invalid signatures on OCSP responses it will normally only be used for testing purposes.
509 510 511 512 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 509 def set_signature_verification_state(opts) check_params(opts,[:states]) super end |
- (Object) set_signing_information(opts)
Sets the signing information necessary to sign the OCSP requests.
522 523 524 525 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 522 def set_signing_information(opts) check_params(opts,[:signers]) super end |
- (Object) set_status_age(opts)
Sets the status ages (sec) for the OCSP response. If the notAfter time is omitted from a response then this means that new status information is immediately available. In this case the age of the notBefore field is checked to see it is not older than age seconds old. By default this additional check is not performed when -status_age is not specified.
539 540 541 542 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 539 def set_status_age(opts) check_params(opts,[:ages]) super end |
- (Object) set_trust_other_certificate_state(opts)
Sets the states indicating whether to be explicitly trust the other certificates specified via set_other_certificate_file and no additional checks will be performed on them. This is useful when the complete responder certificate chain is not available or trusting a root CA is not appropriate.
555 556 557 558 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 555 def set_trust_other_certificate_state(opts) check_params(opts,[:states]) super end |
- (Object) set_url(opts)
Sets the URLs of the responder.
568 569 570 571 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 568 def set_url(opts) check_params(opts,[:urls]) super end |
- (Object) set_va_file(opts)
Sets the files containing explicitly trusted responder certificates. This functionality is equivalent to having the other certificates specified via set_other_certificate_file, and setting the state via set_trust_other_certificate_state.
583 584 585 586 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 583 def set_va_file(opts) check_params(opts,[:va_files]) super end |
- (Object) set_validity_period(opts)
Sets the range of times, in seconds, which will be tolerated in an OCSP response. Each certificate status response includes a notBefore time and an optional notAfter time. The current time should fall between these two values, but the interval between the two times may be only a few seconds. In practice the OCSP responder and clients clocks may not be precisely synchronized and so such a check may fail. To avoid this the -validity_period option can be used to specify an acceptable error range in seconds, the default value is 300 seconds.
602 603 604 605 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 602 def set_validity_period(opts) check_params(opts,[:ranges]) super end |
- (Object) set_verification_state(opts)
Sets the states that indicate whether to attempt to verify the OCSP response signature or the nonce values. This option will normally only be used for debugging since it disables all verification of the responder certificate.
617 618 619 620 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 617 def set_verification_state(opts) check_params(opts,[:states]) super end |
- (EnabledState) signature_verification_state
Gets the states that indicate whether to check the signature on the OCSP response. Since this option tolerates invalid signatures on OCSP responses it will normally only be used for testing purposes.
215 216 217 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 215 def signature_verification_state super end |
- (SignInformation) signing_information
Gets the signing information necessary to sign the OCSP requests.
226 227 228 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 226 def signing_information super end |
- (long) status_age
Gets the status ages (sec) for the OCSP response. If the notAfter time is omitted from a response then this means that new status information is immediately available. In this case the age of the notBefore field is checked to see it is not older than age seconds old. By default this additional check is not performed when -status_age is not specified.
241 242 243 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 241 def status_age super end |
- (EnabledState) trust_other_certificate_state
Gets the states indicating whether to be explicitly trust the other certificates specified via set_other_certificate_file and no additional checks will be performed on them. This is useful when the complete responder certificate chain is not available or trusting a root CA is not appropriate.
255 256 257 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 255 def trust_other_certificate_state super end |
- (String) url
Gets the URL or hostnames of the responder.
266 267 268 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 266 def url super end |
- (String) va_file
Gets the files containing explicitly trusted responder certificates. This functionality is equivalent to having the other certificates specified via set_other_certificate_file, and setting the state via set_trust_other_certificate_state.
279 280 281 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 279 def va_file super end |
- (long) validity_period
Gets the range of times, in seconds, which will be tolerated in an OCSP response. Each certificate status response includes a notBefore time and an optional notAfter time. The current time should fall between these two values, but the interval between the two times may be only a few seconds. In practice the OCSP responder and clients clocks may not be precisely synchronized and so such a check may fail. To avoid this the -validity_period option can be used to specify an acceptable error range in seconds, the default value is 300 seconds.
296 297 298 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 296 def validity_period super end |
- (EnabledState) verification_state
Gets the states that indicate whether to attempt to verify the OCSP response signature or the nonce values. This option will normally only be used for debugging since it disables all verification of the responder certificate.
309 310 311 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 309 def verification_state super end |
- (String) version
Gets the version information for this interface.
317 318 319 |
# File 'lib/icontrol/management/ocsp_responder.rb', line 317 def version super end |