Repository navigation
Initial support for user-supplied CSRs (fixes: #370) - #504
Conversation
This will be used in certbot#504.
Conflicts: letsencrypt/cli.py letsencrypt/client.py letsencrypt/tests/client_test.py
|
Merged with |
There was a problem hiding this comment.
Order is pretty important even if we don't include a CN in certificates.
There was a problem hiding this comment.
The CA will ignore fields other than the CN in the subject. An ACME CA will definitely use the SANs and public key. So stripping out extraneous info is fine. I think a bit more thought should go into exactly what might be useful to include.
There was a problem hiding this comment.
I allowed myself to remove these commented subject fields, and left an appropriate TODO instead.
|
Thanks! LGTM. Tested auth with csr, and without csr with Apache. Tested run with Apache |
Initial support for user-supplied CSRs (fixes: #370)
This PR enables users to supply their own CSRs, by running
letsencrypt auth --csr csr.der. No access to private key is required, domains are read from the CSR.Unfortunately, issued certificates are not enrolled in renewer, as this requires substantial changes to the renewer code, to be done in future PRs. For now certificate and chain are stored in good old
/etc/letsencrypt/certs(which would justify existence of--cert-dir, rather than--csr-dir, c.f. #440).Tested with current demo instance:
Boulder=(master +9af2742 Sun Jun 14 07:37:53 UTC 2015) Golang=(go1.4) BuildHost=(ubuntu@ip-172-30-0-34)Together with #502, this provides the same functionality as https://github.com/diafygi/letsencrypt-nosudo by @diafygi.