macOS利用acme.sh签发证书

简单写个教程备用

1.安装acme.sh服务

git clone https://github.com/acmesh-official/acme.sh.git
cd ./acme.sh
./acme.sh --install  \                                                                                                                                           
--home ~/Myacme \
--config-home ~/Myacme/data \
--cert-home  ~/Myacme/mycerts \
--accountemail  "i@drixn.com" \
--accountkey  ~/Myacme/myaccount.key \
--accountconf ~/Myacme/myaccount.conf \
--useragent  "This is my client."

1674806592841.png

2.切换服务

acme.sh --set-default-ca --server letsencrypt

1674806727016.png

3.签发ECC加密单域名证书示例

acme.sh --issue -d td.yourdomain.com --keylength ec-256 --dns \                                                                        
--yes-I-know-dns-manual-mode-enough-go-ahead-please

7b6f8c40e86f1.png

acme.sh --renew -d td.yourdomain.com --dns --ecc \                                                                                                                                        
--yes-I-know-dns-manual-mode-enough-go-ahead-please

1674808026613.png

4.签发ECC加密多域名证书示例

acme.sh --issue -d one.yourdomain.com -d two.yourdomain.com --keylength ec-256 --dns \ 
--yes-I-know-dns-manual-mode-enough-go-ahead-please

1674809300487.png

 

acme.sh --renew -d one.yourdomain.com -d two.yourdomain.com --ecc --dns \ 
--yes-I-know-dns-manual-mode-enough-go-ahead-please

 

5.签发RSA加密通配符证书示例

acme.sh --issue -d '*.yourdomain.com' --dns \                                                                                                                                                                                
--yes-I-know-dns-manual-mode-enough-go-ahead-please

 

1674806901857.png

acme.sh --renew -d '*.yourdomain.com' --dns \                                                                                                                                                                                
--yes-I-know-dns-manual-mode-enough-go-ahead-please

1674807208881.png

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容