Generate keys in certificate format Commands
Parameters
| Parameter name | Short name | Description | Required | Sample |
|---|---|---|---|---|
| CertificateCommonName | cn | Common name of the certificate, key file name prefix. Files generated: <CommonName>_private.pfx<CommonName>_public.pem<CommonName>_thumbprint.txt |
Yes | "newCertificate" |
| CertificatePassword | pwd | Password for the private certificate. | Yes | "CertPassword123!" |
| CertificateDirectory | dir | Path to where private and public key will be stored. | No | "C:\\temp" |
Commands
generatecertificate --CertificateCommonName <NAME> --CertificatePassword <PASSWORD> --CertificateDirectory <PATH>
Notes
- Public certificate in PEM format can be added to client in HelseId selvbetjening
- Private certificate can be installed on server or for users as needed (requires certificate password)
- Programmatic retrieval of certificate requires input of certificate thumbprint
Code sample
See code lab Generate Certificates