While running Caddy v2 2.2.1 installed on a QNAP server, root certificate would not install as it would with Caddy v1.
Any help much appreciated.
caddy.json:
{
“apps”: {
“http”: {
“servers”: {
“myserver”: {
“listen”: [":443"],
“routes”: [
{
“match”: [{“host”: [“localhost”]}],
“handle”: [{
“handler”: “file_server”,
“root”: “/share/CACHEDEV1_DATA/.qpkg/Caddy2/var/www/jetpic.zapto.org”
}]
}
]
}
}
}
}
}
Error message :
[~] # caddy run --config /share/CACHEDEV1_DATA/.qpkg/Caddy2/conf/caddy.json
2020/12/15 02:46:13.321 INFO using provided configuration {“config_file”:"/share/CACHEDEV1_DATA/ .qpkg/Caddy2/conf/caddy.json", “config_adapter”: “”}
2020/12/15 02:46:13.323 INFO admin admin endpoint started {“address”: “tcp/localhost:2019”, “enforce_origin”: false, “origins”: [“127.0.0.1:2019”, “localhost:2019”, “[::1]:2019”]}
2020/12/15 02:46:13.327 INFO http enabling automatic HTTP->HTTPS redirects {“server_name”:“myserver”}
2020/12/15 02:46:13.327 INFO tls.cache.maintenance started background certificate maintenance {“cache”: “0xc000364000”}
2020/12/15 02:46:13.347 INFO tls setting internal issuer for automation policy that has only int ernal subjects but no issuer configured {“subjects”: [“localhost”]}
2020/12/15 02:46:13.349 INFO tls cleaned up storage units
2020/12/15 02:46:13.455 WARN pki.ca.local installing root certificate (you might be prompted for password) {“path”: “storage:pki/authorities/local/root.crt”}
2020/12/15 10:46:13 Warning: “certutil” is not available, install “certutil” with “apt install libnss3- tools” or “yum install nss-tools” and try again
2020/12/15 10:46:13 define JAVA_HOME environment variable to use the Java trust
2020/12/15 02:46:13.455 ERROR pki.ca.local failed to install root certificate {“error”: “inst all is not supported on this system”, “certificate_file”: “storage:pki/authorities/local/root.crt”}
2020/12/15 02:46:13.455 INFO http enabling automatic TLS certificate management {“domains”: [“localhost”]}
2020/12/15 02:46:13.456 WARN tls stapling OCSP {“error”: “no OCSP stapling for [localhost]: no OCSP server specified in certificate”}
2020/12/15 02:46:13.457 INFO autosaved config {“file”: “/root/.config/caddy/autosave.json”}
2020/12/15 02:46:13.457 INFO serving initial configuration