p2pe tls selfsigncertificate
Command to create a new TLS Self-Signed certificate 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 selfsigncertificate [flags]
Windows
p2pe.exe tls selfsigncertificate [flags]
| Flags | Description | 
|---|---|
| [--client] | Path to directory containing extracted service client. (Default .) | 
| [--days] | Certificate validity period (default 365). | 
| --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 selfsigncertificate --days 180 --dns 0.0.0.0 --subject /CN=localhost/C=IN/ --password Welcome@123 --client ~/<path_to_p2pe_service_client>
Windows Example
p2pe.exe selfsigncertificate --days 180 --dns 0.0.0.0 --subject /CN=localhost/C=IN/ --password Welcome@123 --client ~/<path_to_p2pe_service_client>