简体   繁体   English

WHM将SSL的.pem文件放在哪里

[英]Where does WHM place .pem files for SSL

I'm setting up SSL on my website, and I can't figure out where the .pem files are, or how to get them if I don't have them. 我正在我的网站上设置SSL,无法弄清楚.pem文件在哪里,或者如果没有这些文件,该如何获取它们。 I generated the certificate and signing request with WHM, "issued" the certificate with namecheap's interface with comodo, and then installed the certificate with whm, via copy and paste. 我使用WHM生成了证书和签名请求,并通过namecheap的comodo接口“颁发了”证书,然后通过复制和粘贴为whm安装了证书。 Now I'm looking to set up mysqli_ssl_set() . 现在,我正在寻找设置mysqli_ssl_set()

I originally tried to use the files located in /etc/ssl, which also contains a shortcut file to etc/pki/tls/certs. 我最初尝试使用/ etc / ssl中的文件,该文件还包含一个指向etc / pki / tls / certs的快捷文件。 After messing around with these, I couldn't get them to work( mysqli_ssl_set() keeps coming up as a boolean). 在弄乱了这些内容之后,我无法使它们工作( mysqli_ssl_set()一直以布尔值形式出现)。 The files I was using were .key and .crt files, and w3schools page on mysqli_ssl_set() specifies .pem files. 我使用的文件是.key和.crt文件,而mysqli_ssl_set()上的w3schools页面指定.pem文件。 So, I looked up .pem files, and found that they are plaintext. 因此,我查找了.pem文件,发现它们是纯文本的。 So then I tried creating my own, via copy and paste. 因此,我尝试通过复制和粘贴创建自己的文件。 This also gave the same error. 这也给了同样的错误。

So, where are the .pem files placed by WHM generally? 那么,WHM通常将.pem文件放在哪里? Or, if they are not generated by WHM, how can I best resolve this issue? 或者,如果它们不是由WHM生成的,我该如何最好地解决此问题?

They were placed in etc/ssl/private. 他们被放置在etc / ssl / private中。 For some reason, in FileZilla .pem files look like links to folders, which was off-putting. 出于某种原因,在FileZilla中,.pem文件看起来像指向文件夹的链接,这很令人讨厌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM