Class: IControl::Management::KeyCertificate
- Inherits:
-
Base
- Object
- Base
- IControl::Management::KeyCertificate
- Defined in:
- lib/icontrol/management/key_certificate.rb,
lib/icontrol/management.rb
Overview
The KeyCertificate interface exposes methods that enable you to manage keys, certificates, and certificate requests. All methods in this interface are atomic operations, such that each operation involves creating a session context with the key/certificate management library, performing the required action, and cleaning up and/or destroying the session context when completed. Therefore, all operations are stateless. Note that all operations on keys, certificates, and certificate requests are performed in the directory location containing keys, certs, csr's... as structured for Apache, which is currently /config/ssl. For archiving operations, you have the option of exporting or importing archives to/from other locations. If the location is not specified, the default location of /config/ssl will be used.
Defined Under Namespace
Classes: Certificate, CertificateDetail, CertificateDetailSequence, CertificateDetailSequenceSequence, CertificateInformation, CertificateInformationSequence, CertificateRequest, CertificateRequestInformation, CertificateRequestInformationSequence, CertificateRequestSequence, CertificateSequence, CertificateType, Key, KeyInformation, KeyInformationSequence, KeySequence, KeyType, ManagementModeType, SecurityType, ValidityType, ValidityTypeSequence, X509Data, X509DataSequence
Instance Method Summary (collapse)
-
- (Object) certificate_add_file_to_bundle(opts)
Adds certificates identified by "certificate_files" to the certificate bundles, which are presumed to exist already.
-
- (Object) certificate_add_pem_to_bundle(opts)
Adds certificates identified by "pem_data" to the certificate bundles, which are presumed to exist already.
-
- (Object) certificate_bind(opts)
Binds/associates this keys and certificates.
-
- (CertificateDetail[]) certificate_bundle(opts)
Gets the list of all certificates bundled in the certificate files as specified by the file_names.
-
- (ValidityType) certificate_check_validity(opts)
Gets the validity of this certificates.
-
- (Object) certificate_delete(opts)
Deletes/uninstalls this certificates.
-
- (Object) certificate_delete_from_bundle(opts)
Deletes certificates, identified by their subject's X509 data, from the certificate bundles.
-
- (Object) certificate_export_to_file(opts)
Exports this certificates to the given files.
-
- (String) certificate_export_to_pem(opts)
Exports this certificates to PEM-formatted data.
-
- (Object) certificate_generate(opts)
Generates this certificates.
-
- (Object) certificate_import_from_file(opts)
Imports/installs this certificates from the given files.
-
- (Object) certificate_import_from_pem(opts)
Imports/installs this certificates from the given PEM-formatted data.
-
- (CertificateInformation) certificate_list
Gets the list of all installed certificates and their information.
-
- (Object) certificate_request_delete(opts)
Deletes this CSRs.
-
- (Object) certificate_request_export_to_file(opts)
Exports this certificate requests to the given files.
-
- (String) certificate_request_export_to_pem(opts)
Exports this certificate requests to PEM-formatted data.
-
- (Object) certificate_request_generate(opts)
Generates this certificate signing requests.
-
- (Object) certificate_request_import_from_file(opts)
Imports/installs this certificate requests from the given files.
-
- (Object) certificate_request_import_from_pem(opts)
Imports/installs this certificate requests from the given PEM-formatted data.
-
- (CertificateRequestInformation) certificate_request_list
Gets the list of all CSRs and their information.
-
- (Object) export_all_to_archive_file(opts)
Exports all currently installed keys and certificates into this archive file.
-
- (char) export_all_to_archive_stream
Exports all currently installed keys and certificates into the returned archive stream.
-
- (Object) export_to_archive_file(opts)
Exports this keys and certificates into this archive file.
-
- (char) export_to_archive_stream(opts)
Exports this keys and certificates into the returned archive stream.
-
- (Object) import_all_from_archive_file(opts)
Imports/installs all keys and certificates from this archive file.
-
- (Object) import_all_from_archive_stream(opts)
Imports/installs all keys and certificates from the incoming archive stream.
-
- (Object) import_from_archive_file(opts)
Imports/installs this keys and certificates from this archive file.
-
- (Object) import_from_archive_stream(opts)
Imports/installs this keys and certificates from the incoming archive stream.
-
- (boolean) is_fips_available
Checks to see if the device supports FIPS security.
-
- (Object) key_delete(opts)
Deletes/uninstalls this keys.
-
- (Object) key_export_to_file(opts)
Exports this keys to the given files.
-
- (String) key_export_to_pem(opts)
Exports this keys to PEM-formatted data.
-
- (Object) key_generate(opts)
Generates this keys.
-
- (Object) key_import_from_file(opts)
Imports/installs this keys from the given files.
-
- (Object) key_import_from_pem(opts)
Imports/installs this keys from the given PEM-formatted data.
-
- (KeyInformation) key_list
Gets the list of all installed keys and their information.
-
- (Object) key_to_fips(opts)
Converts this keys to FIPS-enabled keys.
-
- (Object) pkcs12_import_from_file(opts)
Imports/installs this pkcs12 (Public Key Cryptography Standard #12) information from the given files.
-
- (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
- (Object) certificate_add_file_to_bundle(opts)
Adds certificates identified by "certificate_files" to the certificate bundles, which are presumed to exist already. Each of the original certificate bundle can theoretically be a normal certificate, i.e. a certificate bundle of one. After the add operation, the bundles will contain more than one certificate.
58 59 60 61 |
# File 'lib/icontrol/management/key_certificate.rb', line 58 def certificate_add_file_to_bundle(opts) check_params(opts,[:cert_ids,:certificate_files]) super end |
- (Object) certificate_add_pem_to_bundle(opts)
Adds certificates identified by "pem_data" to the certificate bundles, which are presumed to exist already. Each of the original certificate bundle can theoretically be a normal certificate, i.e. a certificate bundle of one. After the add operation, the bundles will contain more than one certificate.
75 76 77 78 |
# File 'lib/icontrol/management/key_certificate.rb', line 75 def certificate_add_pem_to_bundle(opts) check_params(opts,[:cert_ids,:pem_data]) super end |
- (Object) certificate_bind(opts)
Binds/associates this keys and certificates.
89 90 91 92 |
# File 'lib/icontrol/management/key_certificate.rb', line 89 def certificate_bind(opts) check_params(opts,[:cert_ids,:key_ids]) super end |
- (CertificateDetail[]) certificate_bundle(opts)
Gets the list of all certificates bundled in the certificate files as specified by the file_names. Each file_name will contain multiple certficates. Note: only call this method when the results of get_certificate_list indicate that there are multiple certificated bundled in a particular file.
377 378 379 380 |
# File 'lib/icontrol/management/key_certificate.rb', line 377 def certificate_bundle(opts) check_params(opts,[:file_names]) super end |
- (ValidityType) certificate_check_validity(opts)
Gets the validity of this certificates.
104 105 106 107 |
# File 'lib/icontrol/management/key_certificate.rb', line 104 def certificate_check_validity(opts) check_params(opts,[:cert_ids,:watermark_days]) super end |
- (Object) certificate_delete(opts)
Deletes/uninstalls this certificates.
117 118 119 120 |
# File 'lib/icontrol/management/key_certificate.rb', line 117 def certificate_delete(opts) check_params(opts,[:cert_ids]) super end |
- (Object) certificate_delete_from_bundle(opts)
Deletes certificates, identified by their subject's X509 data, from the certificate bundles. If the last certificate has been deleted from the bundle, the certificate file will automatically be deleted.
133 134 135 136 |
# File 'lib/icontrol/management/key_certificate.rb', line 133 def certificate_delete_from_bundle(opts) check_params(opts,[:cert_ids,:x509_data]) super end |
- (Object) certificate_export_to_file(opts)
Exports this certificates to the given files.
148 149 150 151 |
# File 'lib/icontrol/management/key_certificate.rb', line 148 def certificate_export_to_file(opts) check_params(opts,[:cert_ids,:file_names,:overwrite]) super end |
- (String) certificate_export_to_pem(opts)
Exports this certificates to PEM-formatted data.
162 163 164 165 |
# File 'lib/icontrol/management/key_certificate.rb', line 162 def certificate_export_to_pem(opts) check_params(opts,[:cert_ids]) super end |
- (Object) certificate_generate(opts)
Generates this certificates. This assumes that each of the associated keys, having the same identification as each certificate, has already been created.
179 180 181 182 |
# File 'lib/icontrol/management/key_certificate.rb', line 179 def certificate_generate(opts) check_params(opts,[:certs,:x509_data,:lifetime_days,:overwrite]) super end |
- (Object) certificate_import_from_file(opts)
Imports/installs this certificates from the given files.
194 195 196 197 |
# File 'lib/icontrol/management/key_certificate.rb', line 194 def certificate_import_from_file(opts) check_params(opts,[:cert_ids,:file_names,:overwrite]) super end |
- (Object) certificate_import_from_pem(opts)
Imports/installs this certificates from the given PEM-formatted data.
209 210 211 212 |
# File 'lib/icontrol/management/key_certificate.rb', line 209 def certificate_import_from_pem(opts) check_params(opts,[:cert_ids,:pem_data,:overwrite]) super end |
- (CertificateInformation) certificate_list
Gets the list of all installed certificates and their information. If there's a certificate bundle, only the first certificate in the bundle is returned, and and is_bundle flag will be set to true for the correponding bundle file name.
391 392 393 |
# File 'lib/icontrol/management/key_certificate.rb', line 391 def certificate_list super end |
- (Object) certificate_request_delete(opts)
Deletes this CSRs.
222 223 224 225 |
# File 'lib/icontrol/management/key_certificate.rb', line 222 def certificate_request_delete(opts) check_params(opts,[:csr_ids]) super end |
- (Object) certificate_request_export_to_file(opts)
Exports this certificate requests to the given files.
237 238 239 240 |
# File 'lib/icontrol/management/key_certificate.rb', line 237 def certificate_request_export_to_file(opts) check_params(opts,[:csr_ids,:file_names,:overwrite]) super end |
- (String) certificate_request_export_to_pem(opts)
Exports this certificate requests to PEM-formatted data.
251 252 253 254 |
# File 'lib/icontrol/management/key_certificate.rb', line 251 def certificate_request_export_to_pem(opts) check_params(opts,[:csr_ids]) super end |
- (Object) certificate_request_generate(opts)
Generates this certificate signing requests. This assumes that each of the associated keys, having the same identification as each certificate request, has already been created.
268 269 270 271 |
# File 'lib/icontrol/management/key_certificate.rb', line 268 def certificate_request_generate(opts) check_params(opts,[:csrs,:x509_data,:overwrite]) super end |
- (Object) certificate_request_import_from_file(opts)
Imports/installs this certificate requests from the given files.
283 284 285 286 |
# File 'lib/icontrol/management/key_certificate.rb', line 283 def certificate_request_import_from_file(opts) check_params(opts,[:csr_ids,:file_names,:overwrite]) super end |
- (Object) certificate_request_import_from_pem(opts)
Imports/installs this certificate requests from the given PEM-formatted data.
298 299 300 301 |
# File 'lib/icontrol/management/key_certificate.rb', line 298 def certificate_request_import_from_pem(opts) check_params(opts,[:csr_ids,:pem_data,:overwrite]) super end |
- (CertificateRequestInformation) certificate_request_list
Gets the list of all CSRs and their information.
402 403 404 |
# File 'lib/icontrol/management/key_certificate.rb', line 402 def certificate_request_list super end |
- (Object) export_all_to_archive_file(opts)
Exports all currently installed keys and certificates into this archive file. The archive file is a .tgz file that will contain all keys and certificates.
313 314 315 316 |
# File 'lib/icontrol/management/key_certificate.rb', line 313 def export_all_to_archive_file(opts) check_params(opts,[:archive_location,:archive_name]) super end |
- (char) export_all_to_archive_stream
Exports all currently installed keys and certificates into the returned archive stream. The returned archive stream is basically the contents of a .tgz file that contains all keys and certificates.
327 328 329 |
# File 'lib/icontrol/management/key_certificate.rb', line 327 def export_all_to_archive_stream super end |
- (Object) export_to_archive_file(opts)
Exports this keys and certificates into this archive file. The archive file is a .tgz file that will contain only this keys and certificates that have been exported.
343 344 345 346 |
# File 'lib/icontrol/management/key_certificate.rb', line 343 def export_to_archive_file(opts) check_params(opts,[:archive_location,:archive_name,:keys,:certs]) super end |
- (char) export_to_archive_stream(opts)
Exports this keys and certificates into the returned archive stream. The returned archive stream is basically the contents of a .tgz file that contains the exported keys and certificates.
360 361 362 363 |
# File 'lib/icontrol/management/key_certificate.rb', line 360 def export_to_archive_stream(opts) check_params(opts,[:keys,:certs]) super end |
- (Object) import_all_from_archive_file(opts)
Imports/installs all keys and certificates from this archive file. The archive file should be a .tgz file that contains all keys and certificates.
435 436 437 438 |
# File 'lib/icontrol/management/key_certificate.rb', line 435 def import_all_from_archive_file(opts) check_params(opts,[:archive_location,:archive_name]) super end |
- (Object) import_all_from_archive_stream(opts)
Imports/installs all keys and certificates from the incoming archive stream. The archive stream should be the contents of a .tgz file that contains all keys and certificates.
449 450 451 452 |
# File 'lib/icontrol/management/key_certificate.rb', line 449 def import_all_from_archive_stream(opts) check_params(opts,[:archive_stream]) super end |
- (Object) import_from_archive_file(opts)
Imports/installs this keys and certificates from this archive file. The archive file should be a .tgz file that may contain more keys and certificates than what will be imported/installed.
467 468 469 470 |
# File 'lib/icontrol/management/key_certificate.rb', line 467 def import_from_archive_file(opts) check_params(opts,[:archive_location,:archive_name,:keys,:certs]) super end |
- (Object) import_from_archive_stream(opts)
Imports/installs this keys and certificates from the incoming archive stream. The archive stream should be the contents of a .tgz file that may contain more keys and certificates than what will be imported/installed.
484 485 486 487 |
# File 'lib/icontrol/management/key_certificate.rb', line 484 def import_from_archive_stream(opts) check_params(opts,[:archive_stream,:keys,:certs]) super end |
- (boolean) is_fips_available
Checks to see if the device supports FIPS security.
496 497 498 |
# File 'lib/icontrol/management/key_certificate.rb', line 496 def is_fips_available super end |
- (Object) key_delete(opts)
Deletes/uninstalls this keys.
508 509 510 511 |
# File 'lib/icontrol/management/key_certificate.rb', line 508 def key_delete(opts) check_params(opts,[:key_ids]) super end |
- (Object) key_export_to_file(opts)
Exports this keys to the given files.
523 524 525 526 |
# File 'lib/icontrol/management/key_certificate.rb', line 523 def key_export_to_file(opts) check_params(opts,[:key_ids,:file_names,:overwrite]) super end |
- (String) key_export_to_pem(opts)
Exports this keys to PEM-formatted data.
537 538 539 540 |
# File 'lib/icontrol/management/key_certificate.rb', line 537 def key_export_to_pem(opts) check_params(opts,[:key_ids]) super end |
- (Object) key_generate(opts)
Generates this keys.
553 554 555 556 |
# File 'lib/icontrol/management/key_certificate.rb', line 553 def key_generate(opts) check_params(opts,[:keys,:x509_data,:create_optional_cert_csr,:overwrite]) super end |
- (Object) key_import_from_file(opts)
Imports/installs this keys from the given files.
568 569 570 571 |
# File 'lib/icontrol/management/key_certificate.rb', line 568 def key_import_from_file(opts) check_params(opts,[:key_ids,:file_names,:overwrite]) super end |
- (Object) key_import_from_pem(opts)
Imports/installs this keys from the given PEM-formatted data.
583 584 585 586 |
# File 'lib/icontrol/management/key_certificate.rb', line 583 def key_import_from_pem(opts) check_params(opts,[:key_ids,:pem_data,:overwrite]) super end |
- (KeyInformation) key_list
Gets the list of all installed keys and their information.
413 414 415 |
# File 'lib/icontrol/management/key_certificate.rb', line 413 def key_list super end |
- (Object) key_to_fips(opts)
Converts this keys to FIPS-enabled keys.
596 597 598 599 |
# File 'lib/icontrol/management/key_certificate.rb', line 596 def key_to_fips(opts) check_params(opts,[:key_ids]) super end |
- (Object) pkcs12_import_from_file(opts)
Imports/installs this pkcs12 (Public Key Cryptography Standard #12) information from the given files. This includes keys and certificates, and each file is optionally password-encrypted.
614 615 616 617 |
# File 'lib/icontrol/management/key_certificate.rb', line 614 def pkcs12_import_from_file(opts) check_params(opts,[:ids,:file_names,:passwords,:overwrite]) super end |
- (String) version
Gets the version information for this interface.
421 422 423 |
# File 'lib/icontrol/management/key_certificate.rb', line 421 def version super end |