acme icon indicating copy to clipboard operation
acme copied to clipboard

Usability: default for -d when already registered ?

Open bof opened this issue 9 years ago • 2 comments

Another nitpick on first playing with your program: once I got it to register, I immediately proceeded to register once more against the staging server, using acme reg -c .config/acme.staging -d letsencrypt-staging. That worked fine, and I can use acme whoami -c .config/acme.staging to look at the registration details.

Next, I tried acme cert -c .config/acme.staging -manual me.example.com (of course with my own domain). That got me an error: me.example.com: 403 urn:acme:error:unauthorized: No registration exists matching provided key

Not a big issue - I simply have to once more add the -d letsencrypt-staging option, and then it works fine!

However, seeing that the "staging" URI is known (with whoami, or looking at the config file) already when the -c option is given - shouldn't then -d default to that URI from the configuration, like it does with whoami?

bof avatar Jan 18 '17 15:01 bof

I see you already got in type userConfig (and account.conf) a field CA - but it's not used anywhere.

Let's see whether I can make my first useful changes to a go program, and make a pull request... :-)

bof avatar Jan 18 '17 17:01 bof

Sorry for the duplicate pull request, by git-fu is lacking...

I'll look at the code a bit further tomorrow, with an eye on other places that might profit from the saved directory URI

bof avatar Jan 18 '17 19:01 bof