Created attachment 331594 [details] [diff] [review]
The command certutil -K -h all
goes through all the slots, one by one, and for each slot, it reports any
keys it finds or reports "no keys found" if it finds none. But it doesn't
print out the names of the slots and tokens as it goes, so one cannot tell
from the output which token or slot contains each of the listed keys.
The attached patch improves this.
Comment on attachment 331594 [details] [diff] [review]
This is fine, although the PR_fprintf is not really necessary in the else case (slot != NULL) .
Does certutil -K work (meaningfully) on the 3.11 branch?
And if so, should this patch be carried back to that branch>
cmd/certutil/certutil.c; new revision: 1.141; previous revision: 1.140