Re: [libvirt] [PATCH] Fix virt-pki-validate's determination of CN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/29/2010 04:16 PM, Dustin Kirkland wrote:
>> I've tested this against the certool output of both RH and Ubuntu
>> generated certs.
>>
>> Signed-off-by: Dustin Kirkland <kirkland@xxxxxxxxxxxxx>
>> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
>> ---
>> -ORG=`$CERTOOL -i --infile $CA/cacert.pem | sed -n '/Issuer/ s+Issuer: CN=++p'`
>> +sed_get_org='/Issuer:/ {
>> +  s/.*Issuer:.*CN=//
>> +  s/,.*//
>> +  p
>> +}'
>> +ORG=`$CERTOOL -i --infile $CA/cacert.pem | sed -n "$sed_get_org"`
>>  if [ "$ORG" = "" ]
>>  then
>>      echo the CA certificate $CA/cacert.pem does not define the organization
> 
> Thanks, Eric.  I've tested this and it still works works as expected for
> me against the two different cert formats.

Given your ACK and my testing, I've gone ahead and pushed this patch.
Thanks again for persevering with this issue.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]