【问题标题】:Where can I find the .crt and .key files on my Plesk server我在哪里可以找到 Plesk 服务器上的 .crt 和 .key 文件
【发布时间】:2020-09-04 10:01:27
【问题描述】:

我正在使用 plesk 运行服务器,并试图找到由letsencrypt 生成的.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'),
        //'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,
                ]
            ],

        ],

【问题讨论】:

    标签: laravel plesk


    【解决方案1】:

    LetsEncrypt 将在 ubuntu 上使用 .pem。文件扩展名应该无关紧要,所以如果您在尝试使用 pem 文件时遇到错误,那么您应该分享并调查错误消息。

    【讨论】:

    • 连接一直超时。它在本地运行,代客将路径指向正确的路径,但我的服务器上的相同代码没有
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-07-31
    • 1970-01-01
    • 2018-04-13
    • 2018-10-12
    • 2014-08-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多