Fix #296 (Cyberghost implementation) (#297)

* Reads the client key from /gluetun/client.key
* Read the client certificate from /gluetun/client.crt
* Additional checks for client key and client certificate validity
* Fix client key file parsing if environment variable isn't present
This commit is contained in:
Quentin McGaw
2020-11-19 08:50:55 -05:00
committed by GitHub
parent 6896cf4258
commit 1cc0f5fee9
11 changed files with 245 additions and 23 deletions

View File

@@ -25,4 +25,8 @@ const (
RootHints models.Filepath = "/etc/unbound/root.hints"
// RootKey is the filepath to the root.key file used by Unbound.
RootKey models.Filepath = "/etc/unbound/root.key"
// Client key filepath, used by Cyberghost.
ClientKey models.Filepath = "/gluetun/client.key"
// Client certificate filepath, used by Cyberghost.
ClientCertificate models.Filepath = "/gluetun/client.crt"
)