Skip to content

Commit

Permalink
linux tips
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Jan 2, 2024
1 parent a42979a commit 4208dad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/mad/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func main() {
app := cli.NewApp()
app.Name = "Mad"
app.Version = "20210401"
app.Version = "20240102"
app.Usage = "Generate root CA and derivative certificate for any domains and any IPs"
app.Authors = []*cli.Author{
{
Expand Down
16 changes: 13 additions & 3 deletions install.go
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.
`)
}

0 comments on commit 4208dad

Please sign in to comment.