mzihen 发表于 2021-9-5 00:28:50

Let'sEncrypt SSL证书的时候,一直创建不上。


军哥,你好

我在创建Let'sEncrypt SSL证书的时候,一直创建不上。

报错如下:

Starting create SSL Certificate use Let's Encrypt...
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Can not init api.
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Can not init api.
Registering account
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Could not get nonce, let's try again.
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Could not get nonce, let's try again.
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6
Could not get nonce, let's try again.
Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 6


查了报错情况
CURLE_COULDNT_RESOLVE_HOST (6)
Couldn't resolve host. The given remote host was not resolved.



烦请看下,谢谢。
之前1.6的脚本是没问题的哈,现在1.7的脚本。

licess 发表于 2021-9-5 10:16:58

error code: 6 的话就是无法解析域名,和lnmp什么版本没关系,检测你系统上的dns是否正确设置和正常工作
如果是国内机器的话有可能是qiang的干扰

mzihen 发表于 2021-9-6 14:15:53

licess 发表于 2021-9-5 10:16
error code: 6 的话就是无法解析域名,和lnmp什么版本没关系,检测你系统上的dns是否正确设置和正常工作
如 ...

查了系统dns设置如下:

# Generated by NetworkManager
nameserver 1.0.0.1
nameserver 8.8.8.8
nameserver 1.1.1.1
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 8.8.4.4
nameserver 74.82.42.42
页: [1]
查看完整版本: Let'sEncrypt SSL证书的时候,一直创建不上。