问题描述
我正在使用plesk运行服务器,并尝试查找letencrypt生成的.key和.crt文件。
我在Ubuntu服务器上运行plesk,并且已经尝试过.pem文件,但是我的网络套接字不会接受这些文件。
有人知道这些文件的位置/文件路径吗?
密钥路径
/usr/local/psa/var/modules/letsencrypt/etc/live/mydomain.com/fullchain.pem
/usr/local/psa/var/modules/letsencrypt/etc/live/mydomain.com/privkey.pem
网络套接字
/*
* Path to local certificate file on filesystem. It must be a PEM encoded file which
* contains your certificate and private key. It can optionally contain the
* certificate chain of issuers. The private key also may be contained
* in a separate file specified by local_pk.
*/
'local_cert' => env('LOCAL_CERT'),//'local_cert' => null,/*
* Path to local private key file on filesystem in case of separate files for
* certificate (local_cert) and private key.
*/
'local_pk' => env('LOCAL_PK'),/*
* Passphrase for your local_cert file.
*/
'passphrase' => env('PASSPHRASE',null),'verify_peer' => false,],
广播
'pusher' => [
'driver' => 'pusher','key' => env('PUSHER_APP_KEY'),'secret' => env('PUSHER_APP_SECRET'),'app_id' => env('PUSHER_APP_ID'),'options' => [
'cluster' => 'eu','host' => env('PUSHER_APP_HOST'),'port' => env('PUSHER_APP_PORT'),'scheme' => 'https',//'useTLS' => true,//'encrypted' => true,'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,CURLOPT_SSL_VERIFYPEER => 0,]
],
解决方法
LetsEncrypt将在ubuntu上使用.pem。文件扩展名无关紧要,因此,如果您在尝试使用pem文件文件时遇到错误,则应该共享并调查错误消息。