Commit Graph

11 Commits (a526065d0c4e3508af4fcfc74f17c6f78ec02b6d)

Author SHA1 Message Date
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.
4 years ago
Herman Slatman 7ad90d10b3
Refactor initialization of SCEP authority 4 years ago
Mariano Cano f6cbd9dc88 Fix typos. 4 years ago
Mariano Cano ebaeae9008 Avoid closing pkcs#11 context twice. 4 years ago
Mariano Cano f425a81d36 Enforce the use of id and label when generating objects. 4 years ago
Mariano Cano 128d07f148 Use new GetEncoded method. 4 years ago
Mariano Cano 50e9018a44 Fix missing return. 4 years ago
Mariano Cano 84a3c8c984 Rename nitrokey initialization to opensc. 4 years ago
Mariano Cano b7afc92758 Complete tests. 4 years ago
Mariano Cano 294f84b8d4 Add initial set of unit tests for pkcs11 kms. 4 years ago
Mariano Cano a6c784d5dd Add missing pkcs11 package. 4 years ago