p2pe tls requestcertificate
Command to create new TLS Certificate Signing Request in PEM encoded format on existing TLS key pair.
On Windows operating systems execute the command from an Administrator Command Prompt. Right-click the Command Prompt and select Run as Administrator.
Linux
p2pe tls requestcertificate [flags]
Windows
p2pe.exe tls requestcertificate [flags]
Flags | Description |
---|---|
[--client] |
Path to directory containing extracted service client. (Default . ) |
--dns |
Comma separated DNS names as SubjectAltName(s). |
[--out] |
Output directory to write the TLS configuration and certificate files. (Default . ) If omitted, PEM encoded CSR is dumped to stdout. Certificate options include PEM and DER. |
[--password] |
Password for the service. |
--subject |
Subject DN input in openssl style. Example: /CN=example/C=IN/ |
--help |
Help for the command. |
Linux Example
p2pe tls requestcertificate --dns 0.0.0.0 --subject /CN=localhost/O=Thales/OU=p2pe/C=IN/ --out tls_req.pem --password Welcome@123 --client ~/<path_to_p2pe_service_client>
Windows Example
p2pe.exe tls requestcertificate --dns 0.0.0.0 --subject /CN=localhost/O=Thales/OU=p2pe/C=IN/ --out tls_req.pem --password Welcome@123 --client ~/<path_to_p2pe_service_client>