我在哪里可以找到我的 Plesk 服务器上的 .crt 和 .key 文件

Where can I find the .crt and .key files on my Plesk server

我是 运行 有 plesk 的服务器,正在尝试查找由 letsencrypt 生成的 .key 和 .crt 文件。

我在 Ubuntu 服务器上 运行 plesk 并且已经尝试了 .pem 文件,但我的网络套接字不接受这些文件。

有人知道这些文件的 location/file-path 吗?

密钥路径

/usr/local/psa/var/modules/letsencrypt/etc/live/mydomain.com/fullchain.pem
/usr/local/psa/var/modules/letsencrypt/etc/live/mydomain.com/privkey.pem

websockets

        /*
         * 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'),
        //'local_cert' => null,

        /*
         * 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 文件时遇到错误,那么您应该共享并调查错误消息。