Support SLES & OpenSUSE (#162)
* Add support for SLES & OpenSUSE * Update README.md with support for SLES & OpenSUSE * Fix CertutilInstallHelp
This commit is contained in:
parent
bf08925790
commit
b90c9c60cb
@ -59,6 +59,8 @@ sudo apt install libnss3-tools
|
|||||||
sudo yum install nss-tools
|
sudo yum install nss-tools
|
||||||
-or-
|
-or-
|
||||||
sudo pacman -S nss
|
sudo pacman -S nss
|
||||||
|
-or-
|
||||||
|
sudo zypper install mozilla-nss-tools
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can install using [Linuxbrew](http://linuxbrew.sh/)
|
Then you can install using [Linuxbrew](http://linuxbrew.sh/)
|
||||||
@ -111,7 +113,7 @@ mkcert supports the following root stores:
|
|||||||
* Windows system store
|
* Windows system store
|
||||||
* Linux variants that provide either
|
* Linux variants that provide either
|
||||||
* `update-ca-trust` (Fedora, RHEL, CentOS) or
|
* `update-ca-trust` (Fedora, RHEL, CentOS) or
|
||||||
* `update-ca-certificates` (Ubuntu, Debian) or
|
* `update-ca-certificates` (Ubuntu, Debian, OpenSUSE, SLES) or
|
||||||
* `trust` (Arch)
|
* `trust` (Arch)
|
||||||
* Firefox (macOS and Linux only)
|
* Firefox (macOS and Linux only)
|
||||||
* Chrome and Chromium
|
* Chrome and Chromium
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
FirefoxProfile = os.Getenv("HOME") + "/.mozilla/firefox/*"
|
FirefoxProfile = os.Getenv("HOME") + "/.mozilla/firefox/*"
|
||||||
CertutilInstallHelp = `apt install libnss3-tools" or "yum install nss-tools`
|
CertutilInstallHelp = `apt install libnss3-tools" or "yum install nss-tools" or "zypper install mozilla-nss-tools`
|
||||||
NSSBrowsers = "Firefox and/or Chrome/Chromium"
|
NSSBrowsers = "Firefox and/or Chrome/Chromium"
|
||||||
|
|
||||||
SystemTrustFilename string
|
SystemTrustFilename string
|
||||||
@ -34,6 +34,9 @@ func init() {
|
|||||||
} else if pathExists("/etc/ca-certificates/trust-source/anchors/") {
|
} else if pathExists("/etc/ca-certificates/trust-source/anchors/") {
|
||||||
SystemTrustFilename = "/etc/ca-certificates/trust-source/anchors/%s.crt"
|
SystemTrustFilename = "/etc/ca-certificates/trust-source/anchors/%s.crt"
|
||||||
SystemTrustCommand = []string{"trust", "extract-compat"}
|
SystemTrustCommand = []string{"trust", "extract-compat"}
|
||||||
|
} else if pathExists("/usr/share/pki/trust/anchors") {
|
||||||
|
SystemTrustFilename = "/usr/share/pki/trust/anchors/%s.pem"
|
||||||
|
SystemTrustCommand = []string{"update-ca-certificates"}
|
||||||
}
|
}
|
||||||
if SystemTrustCommand != nil {
|
if SystemTrustCommand != nil {
|
||||||
_, err := exec.LookPath(SystemTrustCommand[0])
|
_, err := exec.LookPath(SystemTrustCommand[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user