Win-acme is an ACMEv2 client for Windows operating systems. You can use win-acme to request certificates from Certificate Enrollment Gateway using the ACMEv2 protocol.
To request a certificate using Win-acme
Import your root CA certificate into the Windows trust store.
- Open a Command Prompt. Select Start > Windows System > Command Prompt.
- Navigate to the location where Win-acme is installed.
Enter the following command:
wacs.exe --baseuri <CEG-ACME-URL> --accepttos --target manual --host <hosts> --forceWhere:
<CEG-ACME-URL>is the ACMEv2 enrollment URL used to request a certificate from Certificate Enrollment Gateway. For details, see Enrollment URLs for Certificate Enrollment Gateway.--accepttoswill force Win-acme to automatically accept the ACMEv2 terms of service.--sourcemanual will use the manual plugin, allowing you to provide the host names for a certificate.<hosts>is a comma-separate list of host names to include the in the certificate. The first host name listed will become the common name of the certificate. Subsequent host names will be added to the certificate as subjectAltName extensions only.--forcewill force a renewal if a valid certificate already exists.
For example:
wacs.exe --baseuri https://cegserver.example.com/acme/tenant1/example_ca1/privatessl_tls_client/directory --accepttos --target manual --host www.example.com,example.com --forceWin-acme connects to Certificate Enrollment Gateway, and prompts you to select a task:
A simple Windows ACMEv2 client (WACS)Software version2.1.17.1065(release, pluggable, standalone,64-bit)Connecting to https://cegserver.example.com/acme/tenant1/example_ca1/privatessl_tls_client/directory...Scheduled task not configured yetPlease report issues at https://github.com/win-acme/win-acmeN: Create certificate (defaultsettings)M: Create certificate (full options)R: Run renewals (0currently due)A: Manage renewals (0total)O: More options...Q: QuitPlease choose from the menu- Enter
Nto create a new certificate with the default settings. Win-acme prompts you to provide one or email addresses to receive notifications about problems and abuse:
Enter email(s)fornotifications about problems and abuse (comma-separated):- Enter an email address. Certificate Enrollment Gateway will not send email messages to this email address.
- Win-acme requests the certificate. If the certificate is successfully created, Win-acme installs the certificate and creates a scheduled task for renewing the certificate.