[Pki-devel] [pki-devel][PATCH 0003] Added condition for checking instance id in kra commands

Endi Sukma Dewata edewata at redhat.com
Fri Jul 1 00:06:16 UTC 2016


On 6/30/2016 5:09 AM, Abhijeet Kasurde wrote:
> Hi All,
>
> Please review this patch.
>
> Partially fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1351295
>
> --
> Thanks,
> Abhijeet Kasurde

Thanks! Pushed to master with some changes:

1. The original code was supposed to normalize the token name, so if 
it's 'internal' or 'Internal Key Storage Token' it will be normalized to 
None. If token name is None we don't add -h <token> when calling 
certutil since by default certutil will use internal token.

There's a bug in PKIInstance.get_token_password() though. If the caller 
specifies token parameter to be None explicitly, it won't get the 
default value of 'internal'. The method has been fixed to check for None 
value.

2. The code that catches CalledProcessError has been moved into the main 
program (i.e. pki-server) so similar errors will be handled more 
consistently.

3. Some error messages are changed for consistency.

-- 
Endi S. Dewata




More information about the Pki-devel mailing list