参考:https://www.cnblogs.com/pangguoming/p/11008650.html
官方文档:
1)https://sg.godaddy.com/zh/help/nginx-csr-3601
2)https://sg.godaddy.com/zh/help/centos-7-nginx-27192
报错:
报错nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/nginx/ssl/myxxxxgame201904.key") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: ANY PRIVATE KEY error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
解决方法:
:set fileencoding=cp936
;wq!
参考:https://www.cnblogs.com/ccielife/p/10750683.html
查看文件编码
file domain.key