-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a42979a
commit 4208dad
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
// +build !darwin | ||
// +build !windows | ||
//go:build !darwin && !windows | ||
|
||
package mad | ||
|
||
import "errors" | ||
|
||
func Install(ca string) error { | ||
return errors.New("Unsupported your OS, PR welcome, https://github.com/txthinking/mad") | ||
return errors.New(` | ||
We cannot automate the certificate installation for you. | ||
Different Linux distributions have different installation methods, the following is an example for Ubuntu: | ||
https://ubuntu.com/server/docs/security-trust-store | ||
sudo apt-get install -y ca-certificates | ||
sudo cp ~/.nami/bin/ca.pem /usr/local/share/ca-certificates/ca.crt | ||
sudo update-ca-certificates | ||
If you are using a different distribution, please refer to the relevant official documentation. | ||
`) | ||
} |