acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
38.55k stars 4.9k forks source link

Using Cloudflare SSL configurations with acme script #5281

Closed mahmoodn closed 1 week ago

mahmoodn commented 1 week ago

I normally use the following set of commands with letsencrypt as the default ca to get the private and public keys:

curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --set-default-ca --server letsencrypt
~/.acme.sh/acme.sh --register-account -m MYEMAIL
~/.acme.sh/acme.sh --issue -d MYDOMAIN --standalone
~/.acme.sh/acme.sh --installcert -d MYDOMAIN  --key-file /root/private.key --fullchain-file /root/cert.crt

Using the cloudflare dashboard, I have two files in the origin server section with the PEM format, origin certificate and private key. I would like to know how to convert these PEM files to the right certificates for acme script.

Any idea on how to do that?

github-actions[bot] commented 1 week ago

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

mahmoodn commented 1 week ago

The automatic action bot comment is pretty meaningless here....