restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
943 stars 140 forks source link

Updated self-signed certificate creation #154

Closed JsBergbau closed 3 years ago

JsBergbau commented 3 years ago

What is the purpose of this change? What does it change?

It updates the tutorial for creating self-signed certificates. Without this change restic 0.12.0 compiled with go1.15.8 on windows/amd64 will fail to connect to your restic server, even with --cacert option. Error messages are, depending on what entered at Common name in the openssl dialog: Entering nothing or *: x509: certificate is not valid for any names, but wanted to match yourdomain.com Entering yourdomain.com: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0

Was the change discussed in an issue or in the forum before?

No. I've played around until I've figured it out to get it working.

Checklist

Since this is only a documentation update no functionality is changed at all.