SIGN IN SIGN UP
FiloSottile / mkcert UNCLAIMED

A simple zero-config tool to make locally trusted development certificates with any names you'd like.

0 0 37 Go

Don't overwrite the -key-file if it's identical to -cert-file (#264)

Especially for testing I find it much more convenient to just store both
the key and certificate in a single file, which works with pretty much
all software I've used.

Currently, the -cert-file will overwrite the -key-file since it uses
ioutil.WriteFile(). This fixes it to *append* if the files are
identical.

Co-authored-by: Filippo Valsorda <github@filippo.io>
M
Martin Tournoij committed
c12e24244a4b2cd171fb010f2b6c6a8b5aabb876
Parent: 6649e9d
Committed by GitHub <noreply@github.com> on 10/27/2020, 11:34:17 AM