泛域名 证书 ssl 申请

2020年3月9日 0 条评论 1.49k 次阅读 0 人点赞

使用 lnmp.org 提供的一键脚本命令


    使用域名DNS服务商API方式只生成SSL证书不创建网站配置文件

    该方式只在lnmp 1.6或更高版本上有,其他版本的可以升级到1.6进行使用。
    命令:lnmp onlyssl cx
    这里的cx和上述带配置文件的参数是一样的,如果是其他DNS服务商,参考下面表格进行更改。只不过在添加过程中不需要输入网站目录、是否开启日志等选项。
    该模式下之创建SSL证书并不生成网站配置文件,方便用户在多个虚拟主机上使用同一个证书。自己可以另外 lnmp vhost add 或 lnmp ssl add 创建SSL站点配置文件

    域名DNS服务商名称、简称、API参数和开通API对照表
    API参数中Key、Secret等之类的参数都要改成你自己API的不然一样不行

    服务商名称服务商简称所需API参数获取API参数地址
    cloudxnscxexport CX_Key="123456"
    export CX_Secret="abcdef"
    点击访问
    dnspod (cn大陆版)dpexport DP_Id="123456"
    export DP_Key="abcdef"
    点击访问
    aliyunaliexport Ali_Key="123456"
    export Ali_Secret="abcdef"
    点击访问
    cloudflarecfexport CF_Key="123456"
    export CF_Email="[email protected]"
    点击访问
    linodelinodeexport LINODE_API_KEY="123456"点击访问
    heheexport HE_Username="username"
    export HE_Password="password"
    he的用户名密码
    digitaloceandgonexport DO_API_KEY="123456"点击访问
    namesilonamesiloexport Namesilo_Key="123456"点击访问
    awsawsexport AWS_ACCESS_KEY_ID=123456
    export AWS_SECRET_ACCESS_KEY=abcdef
    点击访问
    namecomnamecomexport Namecom_Username="username"
    export Namecom_Token="123456"
    点击访问
    freednsfreednsexport FREEDNS_User="username"
    export FREEDNS_Password="password"
    freedns的用户名密码
    godaddygdexport GD_Key="123456"
    export GD_Secret="abcdef"
    点击访问
    yandexyandexexport PDD_Token="abcdef"点击访问

    这里只列出了国内用户使用比较多的DNS服务商,也可以去 https://github.com/Neilpang/acme.sh/tree/master/dnsapi 查看其他服务商的具体使用方法。


来自于 https://github.com/acmesh-official/acme.sh/wiki/dnsapi 的使用方法,api账号或key信息被 lnmp.org 储存到了 /usr/local/acme.sh/account.conf

Sevenfal

这个人太懒什么东西都没留下

文章评论(0)