Commit Graph

20 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 1ddddb6bc7 Permit linting and testing without CGO support.
Use CGO for testing and building in travis.
Fixes #471
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 dd6a43ad13 Add fake implementation of pkcs11 key manager without cgo.
This allows other binaries to import pkcs11 directly even if they
are compiled without cgo.
4 years ago
Mariano Cano 41eff69fb3 Fix linting errors. 4 years ago
Mariano Cano 128d07f148 Use new GetEncoded method. 4 years ago
Mariano Cano b28db61d5d Add missing close causing panic with softhsm2. 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 3a479cb0e8 Add support for nitrokey. 4 years ago
Mariano Cano e78d45a060 Add benchmarks for signing operations. 4 years ago
Mariano Cano 673675fa89 Convert pkcs11 tests to use tags. 4 years ago
Mariano Cano 6c113542c8 Fix ecdsa signature verification test. 4 years ago
Mariano Cano 35bf9b787e Implement ecdsa.VerifyASN1 to be compatible with go < 1.15 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