mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

How to install mkcert using `go install`

Open donbarbos opened this issue 1 year ago • 2 comments

Add instructions for the easiest installation method in my opinion, you need only go:

go install filippo.io/mkcert@latest

donbarbos avatar Jan 13 '25 16:01 donbarbos

in FreeBSD (truenas Jail):

root@webserver-dev:/usr/local/bin # go install filippo.io/mkcert@latest
go: downloading filippo.io/mkcert v1.4.4
go: downloading golang.org/x/net v0.0.0-20220421235706-1d1ef9303861
go: downloading software.sslmate.com/src/go-pkcs12 v0.2.0
go: downloading golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29
go: downloading golang.org/x/text v0.3.7
# filippo.io/mkcert
/root/go/pkg/mod/filippo.io/[email protected]/main.go:193:39: undefined: CertutilInstallHelp
/root/go/pkg/mod/filippo.io/[email protected]/main.go:195:77: undefined: NSSBrowsers
/root/go/pkg/mod/filippo.io/[email protected]/main.go:272:9: m.installPlatform undefined (type *mkcert has no field or method installPlatform)
/root/go/pkg/mod/filippo.io/[email protected]/main.go:280:80: undefined: NSSBrowsers
/root/go/pkg/mod/filippo.io/[email protected]/main.go:283:104: undefined: NSSBrowsers
/root/go/pkg/mod/filippo.io/[email protected]/main.go:284:14: undefined: CertutilInstallHelp
/root/go/pkg/mod/filippo.io/[email protected]/main.go:285:78: undefined: NSSBrowsers
/root/go/pkg/mod/filippo.io/[email protected]/main.go:287:114: undefined: NSSBrowsers
/root/go/pkg/mod/filippo.io/[email protected]/main.go:288:82: undefined: CertutilInstallHelp
/root/go/pkg/mod/filippo.io/[email protected]/main.go:311:13: undefined: CertutilInstallHelp
/root/go/pkg/mod/filippo.io/[email protected]/main.go:311:13: too many errors

sheillendra avatar Jan 22 '25 21:01 sheillendra

I just showed a convenient way for me, unfairly in my opinion missed in the documentation. you can try any convenient way.

donbarbos avatar Jan 22 '25 21:01 donbarbos