cert-manager/pkg/issuer/acme
Afolabi Badmos 445e522432 Add support for EC keys
- This PR adds two fields to CertificateSpec:
  - `keyAlgorithm`, denotes which algorithm to use when generating
    a private key. Can be either `rsa` or `ecdsa`. When not set, the
    default algorithm used `rsa`.
  - `keySize`, denotes the key size of the private key being generated.
    For `rsa`, minimum key size is 2048 and maximum is 8192.
    For `ecdsa`, sizes 224, 256, 384 & 521 are supported.
    See https://golang.org/pkg/crypto/elliptic

- `keySize` can be set without being explicit about `keyAlgorithm`.
  - If `keySize` is specified and `keyAlgorithm` is not provided, `rsa` will
    be used as the key algorithm.

- `keyAlgorithm` can be set without being explicit about `keySize`.
  - If `keyAlgorithm` is specified and `keySize` is not provided, key size
    key size of `256` will be used for `ecdsa` key algorithm and
    key size of `2048` will be used for `rsa` key algorithm.

- helper functions in `pki` package now return crypto.PrivateKey
2018-07-17 12:42:07 -04:00
..
client Set status conditions on validation success. Call WaitOrder instead of GetOrder in issue. 2018-04-11 23:30:54 +01:00
dns issuer/dns/route53: add myself as owner 2018-06-12 18:32:49 -07:00
http issuer/acme/http: log namespaces for resources 2018-05-30 20:10:17 -07:00
acme.go Add support for EC keys 2018-07-17 12:42:07 -04:00
issue.go Add support for EC keys 2018-07-17 12:42:07 -04:00
prepare_test.go Add ACMESolverConfigurationForAuthorization test 2018-04-25 18:17:01 +01:00
prepare.go Support the new "ready" order status 2018-07-03 15:31:14 +01:00
renew.go Improve error reporting and use of status conditions 2018-04-09 21:17:51 +01:00
setup.go Add support for EC keys 2018-07-17 12:42:07 -04:00
util_test.go Fix up bugs in unit testing framework 2018-04-04 23:40:44 +01:00
util.go Set Issuer ready condition to false if ACMEv1 endpoints are used 2018-05-09 14:17:20 +01:00