Generates a new certificate signing request (CSR) for a key pair previously generated with the tsactl create-key command.
tsactl create-csr -k <key_id> [-s <subject>] [-o <csr>] [-p <pin>] [-t <token>] [-v <vendor>] [-y]
For example:
$ sudo ./tsactl create-csr -k 7ce798c13a411bc1da4a9f983ed6d44fb4d7ed1a -s "CN=97357462, O=Entrust, C=ES"
Obtaining loaded secrets and configuration... Done
Starting PKCS #11 Manager... Done
Using token with label mytoken
CSR:
----BEGIN CERTIFICATE REQUEST----
MIIBIDCBxQIBADAzMTEwLwYDVQQDEyg3Y2U3OThjMTNhNDExYmMxZGE0YTlmOTgz
…
9xMajw==
----END CERTIFICATE REQUEST----
See below for a description of each option.
-k <key_id>
Select the key with the <key_id>
identifier.
Run the evactl list-keys command to get the key identifiers.
Mandatory: Yes.
-s <subject>
Use <subject>
as the Subject of the certificate request. Where <subject>
is a full Distinguished Name (DN) or Relative Distinguished Name (RDN).
The DN attributes must be in capital letters for the Timestamping Authority solution to recognize the Subject.
For example:
CN=Example User,O=Example,C=US
CN=Example User
Mandatory: No. When omitting this option, the Subject in the generated certificate request defaults to the following:
CN=<key_id>
Where <key_id>
is the key identifier.
-o <csr>
Save the certificate signing request (CSR) in a file with the <csr>
path.
Mandatory: No. When omitting this option, the command prints the CSR to the standard output.
-p <pin>
Authenticate in the HSM with the <pin>
PIN.
Mandatory: No. When omitting this option, the command looks for the PIN in the application secrets. If not found, prompts the user for the PIN.
-t <token>
Select the HSM token with the <token>
label.
Mandatory: No. When omitting this option, the command uses the value of the Token label configuration parameter.
The command will raise an error if you omit this option and the configuration is not loaded.
-v <vendor>
Use the <vendor>
security module. See the following table for the supported values.
Vendor | Security module |
---|---|
none | Built-in software PKCS #11 module. |
nshield | nShield HSM. See HSM requirements for the supported models. |
thales | Thales HSM. See HSM requirements for the supported models. |
It is recommended to select a Hardware Security Module (HSM).
Mandatory: No. When omitting this option, the command assumes the value of the Vendor configuration parameter.
The command will raise an error if you omit this option and the configuration is not loaded.
-y
Skip the confirmation prompt.