3 Commits

Author SHA1 Message Date
Filippo Valsorda
c4437d46bd Delete local Homebrew Formula now that it's in homebrew-core
See #32
2018-07-04 13:03:43 -04:00
ansemjo
5a2f42dee6 truststore: check if profile is a directory before joining cert*.db (#33) 2018-07-04 12:59:33 -04:00
commitay
2e954de528 readme: update homebrew install (#32) 2018-07-04 12:49:38 -04:00
3 changed files with 4 additions and 19 deletions

View File

@@ -1,18 +0,0 @@
class Mkcert < Formula
desc "Simple tool to make locally-trusted development certificates"
homepage "https://github.com/FiloSottile/mkcert"
head "https://github.com/FiloSottile/mkcert.git"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
mkcertpath = buildpath/"src/github.com/FiloSottile/mkcert"
mkcertpath.install buildpath.children
cd mkcertpath do
system "go", "build", "-o", bin/"mkcert"
prefix.install_metafiles
end
end
end

View File

@@ -33,7 +33,7 @@ mkcert automatically creates and installs a local CA in the system root store, a
On macOS, use Homebrew.
```
brew install --HEAD https://github.com/FiloSottile/mkcert/raw/master/HomebrewFormula/mkcert.rb
brew install mkcert
brew install nss # if you use Firefox
```

View File

@@ -97,6 +97,9 @@ func (m *mkcert) forEachNSSProfile(f func(profile string)) (found int) {
return
}
for _, profile := range profiles {
if stat, err := os.Stat(profile); err != nil || !stat.IsDir() {
continue
}
if _, err := os.Stat(filepath.Join(profile, "cert8.db")); !os.IsNotExist(err) {
f("dbm:" + profile)
found++