Skip to content

lietblue/cfworker-stateless-acme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cfworker-stateless-acme

Stateless ACME using Cloudflare-worker

English | 中文

Requirements: acme.sh

Usage:

$ acme.sh --register-account
[Sat 02 Sep 2023 01:32:39 PM CST] Create account key ok.
[Sat 02 Sep 2023 01:32:39 PM CST] Registering account: https://acme-v02.api.letsencrypt.org/directory
[Sat 02 Sep 2023 01:32:42 PM CST] Registered
[Sat 02 Sep 2023 01:32:42 PM CST] ACCOUNT_THUMBPRINT='<Here is your account thumbprint>'

Change acmeAccount variable using domain and account thumbprint accordingly

Then copy the script to the Cloudflare-workers edit page Press save & deploy then bound your domain to the cfworker

Use the following command to issus a cert acme.sh --issue -d <Your domain here> --stateless

if your domain also contain a cf-cdn based website you may want to use the cf routing feature <Your domain here>/.well-known/acme-challenge/*

For multiple machine share the same account thumbprint

This command acme.sh --register-accountwill create account.key file in the ACME CA folder

account.key usually located at: ~/.acme.sh/ca/<Your ACME CA Provider>/directory/account.key

For Let's Encrypt: ~/.acme.sh/ca/acme-v02.api.letsencrypt.org/directory/account.key

Then copy the account.key to other acme.sh client then use acme.sh --register-account to create account file needed by acme.sh

If you don't know where you should put your account key

use acme.sh --create-account-key acme.sh will create the folder containingaccount.key for you replace that key with your own key

Note: According to my test ACME email address WILL NOT AFFECT ACCOUNT THUMBPRINT

About

Stateless ACME using Cloudflare-worker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published