[CLI] New Certificate Management Commands #446
sintaxi
started this conversation in
Show and tell
Replies: 1 comment
-
Can we encrypt wildcards as well? For example, if I set as a custom domain |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Two new commands (
certs
&encrypt
) have landed CLI for Managing Certificates. These commands are currently in theedge
release of surge and will be included in the next release of surge.surge certs <domain>
This command returns all certs that are detected on our system. This includes both uploaded certs and certs that are provisioned by the surge platform via Lets Encrypt. This command shows the certificate authority, when the cert will expire, and if the cert is set to auto-renew by the surge platform. This list represents the source of truth for certificates on the surge platform.
Here is an example running
surge certs sintaxi.com
where a certificate is about to expire...surge encrypt <domain>
This command provisions a new cert if there is not a fresh certificate already existing on the platform. Those on the Student plan will be prompted to upgrade to the Professional plan - as this is a paid feature. The Professional plan permits provisioning certs on an unlimited number of domains.
Here is an example running
surge encrypt sintaxi.com
. As you can see a new cert is provisioned for the domain...Running
surge certs sintaxi.com
again confirms the new certificate is on the system and valid for 90 days...These two commands are available for preview now in the edge branch of surge. It can be installed by running
npm install -g surge@edge
. Please open an issue if any problem are found.Beta Was this translation helpful? Give feedback.
All reactions