diff --git a/src/mod/acme/ca.go b/src/mod/acme/ca.go index 205771e..87f9fc4 100644 --- a/src/mod/acme/ca.go +++ b/src/mod/acme/ca.go @@ -10,6 +10,7 @@ import ( "encoding/json" "errors" "log" + "strings" ) // CA Defination, load from embeded json when startup @@ -36,9 +37,15 @@ func init() { // Get the CA ACME server endpoint and error if not found func loadCAApiServerFromName(caName string) (string, error) { + // handle BuyPass cert org section (Buypass AS-983163327) + if strings.HasPrefix(caName, "Buypass AS") { + caName = "Buypass" + } + val, ok := caDef.Production[caName] if !ok { return "", errors.New("This CA is not supported") } + return val, nil }