Skip to content
This repository has been archived by the owner on Dec 1, 2018. 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

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

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

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

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

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
Development

No branches or pull requests

2 participants