• Docker acme 申请免费的SSL证书


    ```安装docker

    略...

    ```导入docker镜像

    镜像下载地址:xxxxxxxx

    链接:https://pan.baidu.com/s/13v7iy5ELJJERFSFsny06-g
    提取码:ozrm

    #导入镜像

    docker load -i /docker/docker-images/acme.sh.tar

    #导入的镜像重命名,看你心情。

    docker tag 4c3fd8b5439f acme:v2


    ```生成SSL证书

    #申请aiho.site证书
    docker run --rm -it
    -v "/docker/acme/aiho.site":/acme.sh
    --net=host
    --name=acme.sh
    acme:v2  --issue -d aiho.site --standalone

     

    成功的话会出现一下类似提示:

    root@izyl046ocojpinz acme]# docker run --rm  -it 
    >   -v "/docker/acme/aiho.site":/acme.sh  
    >   --net=host 
    >   --name=acme.sh 
    >   acme:v2  --issue -d aiho.site  --standalone
    [Tue Aug
    10 02:31:49 UTC 2021] Using CA: https://acme-v02.api.letsencrypt.org/directory [Tue Aug 10 02:31:49 UTC 2021] Standalone mode. [Tue Aug 10 02:31:49 UTC 2021] Create account key ok. [Tue Aug 10 02:31:49 UTC 2021] Registering account: https://acme-v02.api.letsencrypt.org/directory [Tue Aug 10 02:31:52 UTC 2021] Registered [Tue Aug 10 02:31:52 UTC 2021] ACCOUNT_THUMBPRINT='8VAajGhqsNnyRovFfJO2bVEk-ypQ9ptrCQ4x1eZ25Sw' [Tue Aug 10 02:31:52 UTC 2021] Creating domain key [Tue Aug 10 02:31:52 UTC 2021] The domain key is here: /acme.sh/aiho.site/aiho.site.key [Tue Aug 10 02:31:52 UTC 2021] Single domain='aiho.site' [Tue Aug 10 02:31:52 UTC 2021] Getting domain auth token for each domain [Tue Aug 10 02:31:57 UTC 2021] Getting webroot for domain='aiho.site' [Tue Aug 10 02:31:57 UTC 2021] Verifying: aiho.site [Tue Aug 10 02:31:57 UTC 2021] Standalone mode server [Tue Aug 10 02:32:03 UTC 2021] Success [Tue Aug 10 02:32:03 UTC 2021] Verify finished, start to sign. [Tue Aug 10 02:32:03 UTC 2021] Lets finalize the order. [Tue Aug 10 02:32:03 UTC 2021] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/155348890/15791051690' [Tue Aug 10 02:32:05 UTC 2021] Downloading cert. [Tue Aug 10 02:32:05 UTC 2021] Le_LinkCert='https://acme-v02.api.letsencrypt.org/acme/cert/03da994eeca7dc00d44428c36ae7ce086280' [Tue Aug 10 02:32:07 UTC 2021] Cert success. -----BEGIN CERTIFICATE----- BACgCSqGSIb3DQEBCwUA Aw1MZXQncyBFbmNyeXB0MQswCQYDVQQD EwJSMzAeFw0/6wj8 5dDhIOQ873aLW9r0GfFwwsBso/Brv+4L aU2
    。。。
    这里保密的,不能给你看
    。。。 UqLRq1
    1R3Zq+V9/7dG1biyMV+vv4 YTr/DfU96zmPml2ExckxqLzqGTcZvX05K0of14oy0G zSc/H1oWxDz1RpSsy2sb9Nd6sstuz2acRuBfXEMCG AXdxeSle -----END CERTIFICATE----- [Tue Aug 10 02:32:07 UTC 2021] Your cert is in /acme.sh/aiho.site/aiho.site.cer [Tue Aug 10 02:32:07 UTC 2021] Your cert key is in /acme.sh/aiho.site/aiho.site.key [Tue Aug 10 02:32:07 UTC 2021] The intermediate CA cert is in /acme.sh/aiho.site/ca.cer [Tue Aug 10 02:32:07 UTC 2021] And the full chain certs is there: /acme.sh/aiho.site/fullchain.cer
  • 相关阅读:
    grunt学习(二)——安装grunt及其插件
    grunt学习(一)——nodejs入门
    18个常用的网站性能测试工具
    JSTL(fn函数)
    为MySQL选择合适的备份方式
    Web开发者文档和手册
    为Ruby On Rails开发者准备的5款IDE
    量子统计
    【日常训练】【ACM】2019-10-27_ccpc2019秦皇岛
    poj 2686 Traveling by Stagecoach
  • 原文地址:https://www.cnblogs.com/chenghu/p/15122593.html
Copyright © 2020-2023  润新知