certificates/authority
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
..
provisioner Add support for configuring capabilities (cacaps) 2021-03-07 00:50:00 +01:00
testdata Add test case for error executing template. 2020-06-16 18:21:44 -07:00
authority.go Add non-TLS server and improve crypto.Decrypter interface 2021-03-12 14:18:36 +01:00
authority_test.go Close key manager for safe reloads when a cgo module is used. 2021-02-01 17:14:44 -08:00
authorize.go Create a hash of a token if a token id is empty. 2020-09-18 16:25:08 -07:00
authorize_test.go Create a hash of a token if a token id is empty. 2020-09-18 16:25:08 -07:00
config.go Add non-TLS server and improve crypto.Decrypter interface 2021-03-12 14:18:36 +01:00
config_test.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
options.go leverage intermediate_ca.crt for appending certs. 2020-12-23 22:41:10 -06:00
provisioners.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
provisioners_test.go Remove all references to old apiError. 2020-01-28 13:29:40 -08:00
root.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
root_test.go Use always go.step.sm/crypto 2020-08-14 15:33:50 -07:00
ssh.go Make clearer what's an unsigned cert. 2020-08-28 14:29:18 -07:00
ssh_test.go Use go.step.sm/crypto/jose 2020-08-24 14:44:11 -07:00
tls.go Revert "Begins to fix issue 87" 2020-12-23 22:46:21 -06:00
tls_options.go Move TLSOption, TLSVersion, CipherSuites and ASN1DN to certificates. 2020-08-10 15:29:18 -07:00
tls_options_test.go Move TLSOption, TLSVersion, CipherSuites and ASN1DN to certificates. 2020-08-10 15:29:18 -07:00
tls_test.go leverage intermediate_ca.crt for appending certs. 2020-12-23 22:41:10 -06:00
types.go Move Duration to a new file and move tests to provisioner package. 2019-03-11 14:54:25 -07:00
types_test.go Move Duration to a new file and move tests to provisioner package. 2019-03-11 14:54:25 -07:00
version.go Add missing version.go file. 2020-01-28 13:28:17 -08:00