envoy: support autocert (#695)

* envoy: support autocert

* envoy: fallback to http host routing if sni fails to match

* update comment

* envoy: renew certs when necessary

* fix tests
This commit is contained in:
Caleb Doxsey 2020-05-13 13:07:04 -06:00 committed by Travis Groth
parent 0c1ac5a575
commit dccec1e646
18 changed files with 689 additions and 391 deletions

View file

@ -55,9 +55,9 @@ func TestCertifcateFromBase64(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, err := CertifcateFromBase64(tt.cert, tt.key)
_, err := CertificateFromBase64(tt.cert, tt.key)
if (err != nil) != tt.wantErr {
t.Errorf("CertifcateFromBase64() error = %v, wantErr %v", err, tt.wantErr)
t.Errorf("CertificateFromBase64() error = %v, wantErr %v", err, tt.wantErr)
return
}
})