Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos 7 SSL证书申请失败,但是debian 8 正常 #1

Open
zzm-note opened this issue Jun 4, 2018 · 4 comments
Open

Centos 7 SSL证书申请失败,但是debian 8 正常 #1

zzm-note opened this issue Jun 4, 2018 · 4 comments

Comments

@zzm-note
Copy link

zzm-note commented Jun 4, 2018

不太了解这个证书申请的步骤,还望修复一下!

不太懂这个ssl证书怎么实现的,所以自己搞不定了

#检查ssl证书是否生成
check_ssl(){
	echo -e "${OK} ${GreenBG} 正在等待域名证书生成 ${Font}"
	sleep 5
if [[ -e /root/.caddy/acme/acme-v02.api.letsencrypt.org/sites/${domain}/${domain}.key ]]; then
	echo -e "${OK} ${GreenBG} SSL证书申请 成功 ${Font}"
else
	echo -e "${Error} ${RedBG} SSL证书申请 失败 请确认是否超出Let’s Encrypt申请次数或检查服务器网络 ${Font}"
	echo -e "${Error} ${RedBG} 注意:证书每个IP每3小时10次 7天内每个子域名不超过5次总计不超过20次 ${Font}"
	exit 1
fi
}
@zzm-note
Copy link
Author

zzm-note commented Jun 4, 2018

还有shadowrocket配置了好像无效,电脑上倒是可以,可以分享一下这个配置方法吗?感谢~

@dylanbai8
Copy link
Owner

dylanbai8 commented Jun 4, 2018

运行:
/usr/local/bin/caddy -conf=/etc/caddy/Caddyfile -agree=true -ca=https://acme-v02.api.letsencrypt.org/directory
查看错误代码。

如果出现 acme: Error 429 这种提示就是你的域名已经禁言了,一周后再来折腾或者请换域名。

@zzm-note
Copy link
Author

zzm-note commented Jun 5, 2018

还有个问题,如果开启了共享功能,如何关闭啊?

@dylanbai8
Copy link
Owner

重装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants