1. Caddy version (caddy version
):
v2.0.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
2. How I run Caddy:
still trying
a. System environment:
centos7
b. Command:
caddy run --config caddy.json
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
{
"admin": {
"listen": ":2019"
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "file_server",
"hide": [
"Caddyfile"
]
}
]
}
]
}
],
"match": [
{
"host": [
"emrb-appdev01.icts.uiowa.edu"
]
}
],
"terminal": true
}
],
"tls_connection_policies": [
{
"default_sni": "emrb-appdev01.icts.uiowa.edu"
}
]
}
}
},
"tls": {
"automation": {
"on_demand": {
"rate_limit": {
"burst": 1,
"interval": 1800000000000
}
},
"policies": [
{
"issuer": {
"ca": "https://acme.sectigo.com/v2/InCommonRSAOV",
"email": "redacted@uni.edu",
"external_account": {
"hmac": "redacted",
"key_id": "redacted"
},
"module": "acme"
}
}
]
}
}
},
"logging": {
"logs": {
"default": {
"level": "DEBUG"
}
}
}
}
3. The problem Iām having:
Trying to get the external account binding to work. But I canāt get it to accept the HMAC
I have tried several things including putting the same string I put into the json config into this go program
package main
import (
"fmt"
"encoding/base64"
)
func main() {
str := "redacted"
x, err := base64.StdEncoding.DecodeString(str)
if err != nil {
fmt.Println(err)
}
fmt.Println(string(x))
}
This program is able to decode.
In addition, in the json value I have tried adding a \n
at the end (there is an equal sign present for padding)
4. Error messages and/or full log output:
5. What I already tried:
2020/06/09 09:29:15 [ERROR] Making new ACME client: acme: could not decode hmac key: illegal base64 data at input byte 115 (attempt 1/2)