Valet: [feature] Use mkcert for valid local ssl

Created on 13 Jan 2019  路  9Comments  路  Source: laravel/valet

MKCERT is a simple tool for making locally-trusted development certificates.
Sounds pretty perfect for integration into Valet right?

Most helpful comment

I'm about 80% through implementing mkcert.

All 9 comments

Just attempting to "sell" this feature.
mkcert would enable:

  • support for wildcard certificates
  • no SEC_ERROR_UNKNOWN_ISSUER errors

Seems worth exploring.

I've been manually swapping out some certs in the nginx config and it works great... except for a couple of Valet commands that rebuild those configs..
Would be great to get this built in properly.

I'm happy to work on PR if its likely to go ahead.

@tobz-nz I took a look at this today for awhile, with a particular goal:

My primary hope was to remove the need to have openssl available, since some people have reported issues with it (which I think are from external apps breaking the core or interfering with dylibs etc).

But if we don't use openssl to generate a CSR then it's much harder to identify certificates in the Keychain as being specific to Valet and needing "cleanup" if people don't use valet unsecure to remove all their generated certs. (ie: sometimes people just delete their ~/.config/valet dir as a cleanup, but this leaves junk in Keychain).
So, I don't think we can drop openssl as I'd hoped.

That doesn't mean mkcert couldn't be used.

I suppose maybe we could identify some other way to do system cleanup.

While Valet puts its CA in the valet config dir, I suppose if mkcert is generally installed then people can use it to create other non-valet certificates too, so maybe we don't need to even be "valet-specific". Just make sure whatever Valet needs is present when mkcert is called in case someone's run other mkcert commands that might confuse valet.

I'd welcome seeing a PR with what you come up with.

Cool - I'll look at implementing this when I have some time. 馃憤

Smallstep seems little bit overkill don't you think?

I'm about 80% through implementing mkcert.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dannygsmith picture dannygsmith  路  5Comments

ellisio picture ellisio  路  4Comments

AlexVipond picture AlexVipond  路  4Comments

Alshie picture Alshie  路  4Comments

TimOgilvy picture TimOgilvy  路  3Comments