Skip to content
This repository has been archived by the owner. It is now read-only.

How to create an account key using -n? #7

Closed
star26bsd opened this issue Jul 10, 2016 · 3 comments
Closed

How to create an account key using -n? #7

star26bsd opened this issue Jul 10, 2016 · 3 comments

Comments

@star26bsd
Copy link

@star26bsd star26bsd commented Jul 10, 2016

Hi! I am using 0.17 on OpenBSD 5.9-Stable. I have read that I need to create an account key first using -n. However, all attempts on using -n properly failed:

# letskencrypt -n                                                                                                               
usage: letskencrypt [-Fnrsv] [-C challengedir] [-c certdir] [-f accountkey] [-k domainkey] [-u user] domain [altnames...]
# letskencrypt -n my-domain.com
letskencrypt: /etc/ssl/letsencrypt/private/privkey.pem: -k file must exist

I have read the man page a dozen times and can't figure it out. thanks for your help.

@kristapsdz
Copy link
Owner

@kristapsdz kristapsdz commented Jul 11, 2016

The -n flag will create the account key, not the domain key. You need to create the domain key yourself, as now documented in the EXAMPLES section of letskencrypt.1. Does this clear that up? (And as noted in the other issue, do other clients create the domain key for you as well?)

@star26bsd
Copy link
Author

@star26bsd star26bsd commented Jul 11, 2016

Great, thank you. I had assumed the key creation is done by letskencrypt. However, it does make sense to create the private key manually, of course. The new EXAMPLES section shows this nicely. Thanks!

kristapsdz pushed a commit that referenced this issue Jul 12, 2016
@kristapsdz
Copy link
Owner

@kristapsdz kristapsdz commented Jul 12, 2016

I've also added the -N flag to the latest version, which will create this for you.

@kristapsdz kristapsdz closed this Jul 12, 2016
kristapsdz pushed a commit that referenced this issue Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants