12.3. Output
The
CMCRequest
command generates a certificate request depending on the parameters in a .cfg
file. The parameters in Example 12.1, “CMC Request .cfg File” are used to create the request in Example 12.2, “CMC Request Output”.
Example 12.1. CMC Request .cfg File
#Usage: CMCRequest <configuration file> #For example, CMCRequest CMCRequest.cfg #The configuration file should look like as follows: #numRequests: Total number of PKCS10 requests or CRMF requests. numRequests=1 #input: full path for the PKCS10 request or CRMF request, #the content must be in Base-64 encoded format #Multiple files are supported. They must be separated by space. #input=pkcs10.i #input=govReq2.txt input=myCMC.txt #output: full path for the CMC request in binary format output=/tmp/cfu/cmcReq.myCMC #nickname: nickname for agent certificate which will be used #to sign the CMC full request. #nickname=CMS Agent Certificate #nickname=cfuAgent-ca2's SjcRedhat Domain jaw ca2 ID nickname=CA Administrator of Instance pki-ca-0124's SjcRedhat Domain 0124 ID #dbdir: directory for cert8.db, key3.db and secmod.db dbdir=/tmp/cfu/ #password: password for cert8.db which stores the agent #certificate password=netscape #format: request format, either pkcs10 or crmf format=crmf #confirmCertAcceptance.enable: if true, then the request will #contain this control. Otherwise, false. confirmCertAcceptance.enable=false #confirmCertAcceptance.serial: The serial number for #confirmCertAcceptance control confirmCertAcceptance.serial=3 #confirmCertAcceptance.issuer: The issuer name for #confirmCertAcceptance control confirmCertAcceptance.issuer=cn=Certificate Manager,c=us #getCert.enable: if true, then the request will contain this #control. Otherwise, false. getCert.enable=false #getCert.serial: The serial number for getCert control getCert.serial=3 #getCert.issuer: The issuer name for getCert control getCert.issuer=cn=Certificate Manager,c=us #dataReturn.enable: if true, then the request will contain #this control. Otherwise, false. dataReturn.enable=false #dataReturn.data: data contained in the control. dataReturn.data=test #transactionMgt.enable: if true, then the request will contain #this control. Otherwise, false. transactionMgt.enable=false #transactionMgt.id: transaction identifier. Verisign recommend #transactionId to be MD5 hash of publicKey. transactionMgt.id= #senderNonce.enable: if true, then the request will contain this #control. Otherwise, false. senderNonce.enable=false #senderNonce.id: sender nonce senderNonce.id= #revRequest.enable: if true, then the request will contain this #control. Otherwise, false. revRequest.enable=false #revRequest.nickname: The nickname for the revoke certificate revRequest.nickname=newuser's 102504a ID #revRequest.issuer: The issuer name for the certificate being #revoked. revRequest.issuer=cn=Certificate Manager,c=us #revRequest.serial: The serial number for the certificate being #revoked. revRequest.serial=61 #revRequest.reason: The reason for revoking this certificate: # unspecified, keyCompromise, caCompromise, # affiliationChanged, superseded, cessationOfOperation, # certificateHold, removeFromCRL revRequest.reason=unspecified #revRequest.sharedSecret: The sharedSecret revRequest.sharedSecret= #revRequest.comment: The human readable comment revRequest.comment= #revRequest.invalidityDatePresent: if true, the current time will be the # invalidityDate. If false, no invalidityDate # is present. revRequest.invalidityDatePresent=false #identityProof.enable: if true, then the request will contain #this control. Otherwise, false. identityProof.enable=false #identityProof.sharedSecret: Shared Secret identityProof.sharedSecret=testing #popLinkWitness.enable: if true, then the request will contain #this control. Otherwise, false. #If you want to test this control, make sure to use CRMFPopClient # to generate the CRMF request which will include the #idPOPLinkWitness attribute in the controls section of the #CertRequest structure. popLinkWitness.enable=false #LraPopWitness.enable: if true, then the request will contain this #control. Otherwise, false. LraPopWitness.enable=false #LraPopWitness.bodyPartIDs: List of body part IDs #Each id is separated by space. LraPopWitness.bodyPartIDs=1
Example 12.2. CMC Request Output
CMCRequest CMCrequest.myCMC.cfg cert/key prefix = path = /tmp/cfu/ The CMC enrollment request in base-64 encoded format: MIIKZwYJKoZIhvcNAQcCoIIKWDCCClQCAQMxCzAJBgUrDgMCGgUAMIIBxAYIKwYB BQUHDAKgggG2BIIBsjCCAa4wADCCAaShggGgMIIBBgIFAPgzSl8wgceAAQKlDjAM MQowCAYDVQQDEwF4poGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDhZcSEFI3v YqNWHsHIH/BDrcVHLuHNuifuSE0fgyirNAwI7IwVReB/I2b1NWSyqh2+9PYIFeSc VjXvh7p9GU7GmLL4p+Tdpx3YD1JVrumbn6W2uGvMf8UgNx8OxFgkuKy3Z9ohd30x oTi/hEKoDK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