Skip to content

ERR_CONNECTION_REFUSED, nginx can't find .crt file #807

@heggern

Description

@heggern

Hi.

I've been fighting valet (or maybe nginx) the whole day. I upgraded Valet from 2.0 something to Valet 2.3.3, and from PHP 7.1 to 7.3.8, and suddenly every application stoped working. Got the ERR_CONNECTION_REFUSED in Chrome.

When running nginx -t dumps this error:

nginx: [emerg] cannot load certificate "/Users/heggern/.config/valet/Certificates/testapp.test.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/Users/heggern/.config/valet/Certificates/testapp.test.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

Inside /.config/valet/Certificates there is no .crt file, just three other files: .conf, .csr and .key

I have tried to uninstall everything, and re-install, but no luck. No .crt file anywhere.

I also looked into an old valet folder (renamed my old valet folder to valet-backup before removing everything), but there wasn't any .crt file.

Anyone with any information who to get the .crt file to be created with the valet secure command?

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