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 <kirkl...@canonical.com>
>> Signed-off-by: Eric Blake <ebl...@redhat.com>
>> ---
>> -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   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to