certificates/ca
Herman Slatman 8c5b12e21d
Add non-TLS server and improve crypto.Decrypter interface
A server without TLS was added to serve the SCEP endpoints. According
to the RFC, SCEP has to be served via HTTP. The `sscep` client, for
example, will stop any URL that does not start with `http://` from
being used, so serving SCEP seems to be the right way to do it.

This commit adds a second server for which no TLS configuration is
configured. A distinct field in the configuration, `insecureAddress`
was added to specify the address for the insecure server.

The SCEP endpoints will also still be served via HTTPS. Some clients
may be able to work with that.

This commit also improves how the crypto.Decrypter interface is
handled for the different types of KMSes supported by step. The
apiv1.Decrypter interface was added. Currently only SoftKMS
implements this interface, providing a crypto.Decrypter required
for SCEP operations.
2021-03-12 14:18:36 +01:00
..
identity Fix unit tests in Go 1.16. 2021-02-23 15:29:56 -08:00
testdata Disable backdata on ca tests. 2020-01-28 13:29:39 -08:00
acmeClient.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
acmeClient_test.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
bootstrap.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
bootstrap_test.go Fix unit tests in Go 1.16. 2021-02-23 15:29:56 -08:00
ca.go Add non-TLS server and improve crypto.Decrypter interface 2021-03-12 14:18:36 +01:00
ca_test.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
client.go Use smallstep/cli-utils instead of smallstep/cli 2020-10-29 13:10:03 -07:00
client_test.go Use always go.step.sm/crypto/x509util 2020-08-11 17:59:33 -07:00
mutable_tls_config.go Fix a couple of race conditions in the renewal of certificates. 2020-01-28 13:29:40 -08:00
provisioner.go Use smallstep/cli-utils instead of smallstep/cli 2020-10-29 13:10:03 -07:00
provisioner_test.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
renew.go Fix renew of certificate at the start of the server. 2020-05-07 18:21:11 -07:00
signal.go Add x5c provisioner capabilities 2019-10-14 14:51:37 -07:00
tls.go Add missing tests. 2020-07-21 14:21:54 -07:00
tls_options.go Fix typo. 2019-02-05 17:33:16 -08:00
tls_options_test.go Fix unit tests in Go 1.16. 2021-02-23 15:29:56 -08:00
tls_test.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00