spec/acceptance/helpers/pkiutils.rb
# Generate a CMC request (bin) file and a corresponding CMC
# config file, both of which are required to submit the
# certificate request to the CA using CMC.
#
# +cfg+:  Hash of hashes with CA and file name info.  Primary keys
#         are :ca and :files, respectively.
#
# The value of the :ca key is a Hash with the following keys
# - :host :       Host object for the CA
# - :name :       Name of the CA
# - :https_port : HTTPS port to use to communicate with the CA
# - :password :   NSS database password for the CA
#
# The value of the :files key is a Hash with the following keys:
# - :cert_request :    Certificate request file
# - :cmc_request_cfg : CMC request config file
# - :cmc_request :     CMC request 'bin' file
# - :cmc_submit_cfg :  CMC submit config file
# - :cmc_response :    CMC response 'bin' file
#
Generate a CMC request (bin) file and a corresponding CMC
config file, both of which are required to submit the
certificate request to the CA using CMC.

+cfg+:  Hash of hashes with CA and file name info.  Primary keys
are :ca and :files, respectively.




Generate a CMC request ( bin ) file and a corresponding CMC config file both of which are required to submit the certificate request to the CA using CMC . + cfg + : Hash of hashes with CA and file name info . Primary keys are : ca and : files respectively .
def generate_cmc_request_files(cfg)
        generate_cmc_request_cfg(cfg)
        on(cfg[:ca][:host], "CMCRequest #{cfg[:files][:cmc_request_cfg]}")
        generate_cmc_submit_cfg(cfg)
      end
def generate_cmc_request_files ( cfg ) generate_cmc_request_cfg ( cfg ) on ( cfg [ :ca ] [ :host ] , "CMCRequest #{cfg[:files][:cmc_request_cfg]}" ) generate_cmc_submit_cfg ( cfg ) end
Generate a CMC request (bin) file and a corresponding CMC
config file, both of which are required to submit the
certificate request to the CA using CMC.
Generate a CMC request ( bin ) file and a corresponding CMC config file both of which are required to submit the certificate request to the CA using CMC .
# create a CMC config file that specifies how to generate # the CMC request file from the certificate request file # using the CMC config file, generate the CMC request file # create a CMC submit config file that specifies how to # generate the CMC response from the CMC request
cfg
<not_specific>