Skip to content

admin-revoker tool - #223

Merged
jsha merged 9 commits into
letsencrypt:masterfrom
rolandshoemaker:revoker
May 26, 2015
Merged

jsha merged 9 commits into
letsencrypt:masterfrom
rolandshoemaker:revoker

Conversation

@rolandshoemaker

Copy link
Copy Markdown
Contributor

Fixes #198.

Currently provides two ways to revoke certificates, either directly by the hex serial or by associated registration ID. It also provides a subcommand to list revocation reason codes and their short names since I kept forgetting what they meant. I followed @jcjones OCSP-Signer lead and added a NewDbMap function to the SA to simplify the creation of the dbMap object.

It might also make sense to add a command to revoke all certificates by the cert public key fingerprint, but this would require us to add a fingerprint field to the core.Certificate object. I may do this tomorrow but it's 1 AM at the moment so now I'm going to bed!

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.05%) to 44.78% when pulling e4db6a5 on rolandshoemaker:revoker into 4a92001 on letsencrypt:master.

Comment thread cmd/admin-revoker/main.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes a double-commit, because we commit on line 201.

I generally don't like processing Rollback or Commit in sub-methods; I think it's clearer if the err objects propagate upward and happen at the same level as the transaction is opened.

@jcjones

jcjones commented May 26, 2015

Copy link
Copy Markdown
Contributor

I'm generally good with this. I noted above my general preference in transaction management, but I don't think it's hurting anything -- the DB is smart enough.
I'd like @jsha to weigh in as to whether he minds or not. If not, then I think it's clear to merge. Thanks!

@jsha

jsha commented May 26, 2015

Copy link
Copy Markdown
Contributor

I agree that Begin and Commit should be in the same method, with the various revoke methods returning err as appropriate. I think it's worth fixing before merge. Thanks!

@rolandshoemaker

Copy link
Copy Markdown
Contributor Author

Should be somewhat cleaner now.

@rolandshoemaker

Copy link
Copy Markdown
Contributor Author

Whoops

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.22%) to 44.62% when pulling 5d0148c on rolandshoemaker:revoker into 4a92001 on letsencrypt:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.22%) to 44.62% when pulling 5d0148c on rolandshoemaker:revoker into 4a92001 on letsencrypt:master.

jsha added a commit that referenced this pull request May 26, 2015
@jsha
jsha merged commit 19fd285 into letsencrypt:master May 26, 2015
eq19 pushed a commit to VirtualNetworks/boulder that referenced this pull request May 1, 2025
IE does not support the syntax of trailing commas in objects.

Resolves: letsencrypt#222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add admin-revoke utility

4 participants