from: https://blog.csdn.net/king_cpp_py/article/details/79523816
certutil -hashfile yourfilename.ext MD5
certutil -hashfile yourfilename.ext SHA1
certutil -hashfile yourfilename.ext SHA256
from: https://blog.csdn.net/king_cpp_py/article/details/79523816
certutil -hashfile yourfilename.ext MD5
certutil -hashfile yourfilename.ext SHA1
certutil -hashfile yourfilename.ext SHA256
chcp 65001 set PYTHONIOENCODING=utf-8
logging.error(“some log:” + unicode(input, ‘utf-8’))
参考:
https://letsencrypt.org/zh-cn/getting-started/
https://www.cnblogs.com/stulzq/p/8628163.html
yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
yum install certbot python2-certbot-apache
certbot certonly -d 你的域名 -d *.你的域名 --manual --preferred-challenges dns
(more…)
从证书服务商得来的压缩包里,只有一个公钥crt和一个证书链文件,缺少私钥key文件,百思不得其解,最后只能自己手动在服务器上生成一个csr和key文件,重新向证书服务商请求Rekey,用新得来的crt文件配置上apache了:
[code language=”bash”]
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
[/code]
Powered by WordPress