Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

how to make it work with Laravel Valet --secure #8

@vesper8

Description

@vesper8

I am trying to get the demo to work and it is not. I figure it must be because by default all my valet sites use the --secure flag

I get this red error

screenshot 2018-12-05 02 20 45

I went into the websockets.php config file and tried to pass it the crt and key files:

    'ssl' => [
        /*
         * 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' => '/Users/xxx/.valet/Certificates/laravel-websockets-demo.dev.crt',
        // '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' => '/Users/xxx/.valet/Certificates/laravel-websockets-demo.dev.key',
        // 'local_pk' => null,

        /*
         * Passphrase with which your local_cert file was encoded.
         */
        'passphrase' => null
    ],

This changes the error and is no longer red, but it still doesn't work

screenshot 2018-12-05 02 20 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions