gpgsm problems with dc RDN
Karsten Künne
kuenne at rentec.com
Sat Jan 10 00:35:14 CET 2004
Hi,
I tried to bring my LDAP and certificate DN's more in sync and created a
new CA which uses the dc RDN. The subject DN of the CA is
"cn=Renaissance CA,dc=rentec,dc=com". Now I created a certificate for
myself with the subject "cn=Karsten Künne,ou=People,dc=rentec,dc=com"
and imported that into gpgsm. But if I list the certificate with "gpgsm
--list-keys" it shows a funny subject and issuer (also for the CA
certificate):
Serial number: 01
Issuer: /CN=Renaissance CA/DC=rentec/ + com/DC=com
aka: ca at rentec.com
Subject: /CN=Karsten Künne/OU=People/DC=rentec/ + com/DC=com
aka: kuenne at rentec.com
....
Serial number: 00
Issuer: /CN=Renaissance CA/DC=rentec/ + com/DC=com
Subject: /CN=Renaissance CA/DC=rentec/ + com/DC=com
aka: ca at rentec.com
....
The " + com" part seems to be wrong there.
If I list the certs with openssl they look correct:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: md5WithRSAEncryption
Issuer: DC=com, DC=rentec, CN=Renaissance CA
Validity
Not Before: Jan 10 04:15:46 2004 GMT
Not After : Jan 9 04:15:46 2006 GMT
Subject: DC=com, DC=rentec, OU=People, CN=Karsten K\xC3\xBCnne
Subject Public Key Info:
....
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 0 (0x0)
Signature Algorithm: md5WithRSAEncryption
Issuer: DC=com, DC=rentec, CN=Renaissance CA
Validity
Not Before: Jan 10 03:37:10 2004 GMT
Not After : Jan 8 03:37:10 2010 GMT
Subject: DC=com, DC=rentec, CN=Renaissance CA
....
If I import the stuff into mozilla it also looks correct. Naturally, if
I use this cert in kmail the subject is wrong and it looks even more
weird (but kmail's S/MIME support uses gpgsm so this is to be expected).
Mozilla, openssl and gpgsm are all independent implementations and
because it's 2:1 against gpgsm I would assume gpgsm is at fault here but
I'm in no way an ASN.1 guru and I can't verify whether the subject (and
issuer) is encoded correctly or not. The version of gpgsm is:
% gpgsm --version
gpgsm (GnuPG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n
YPUVMpfU/7TPXVo4pjFfUmm9XJ6dduC6SlAN+1/xDRR1dy2WqNLcN1dpyoUTtEWp
Xvp7I66oLfWahKs0d4fOXIrZmyLqKN3H8CLrZPz8b4Skw+wWxEUIqJEkRKez5adK
Ry1VK21nIwUUWHfLvrqw4CgZvpMQVEZRhsiOPqlHEH+epDV4hD5/OCG5oK+8RoKA
Yw1xjs3gOCCf6GDVrftBBLsYQufL7E4BOD4RKDYQCo6HD7cHXfy+RttdIcKzlq4u
6QbzFgIkc3KF0/U5FpvKxQHyfQwoD8AORWF6myjGtM13ij8yXg4Mx1sgKOY9IK1/
muLauYAamNdCSkD5+0ecmYJ98G7022zUTBE8LR6FFHAG+3F8mzP+oI2eOwJYzMFW
Zw3MNUCarArIyxts/+izpOEIfkf0ztx1TckCTGd/F7WAkQcDHZHsf8Vb+eaLTltk
rEM6mnpov+YCO8qb/vmr2018fNS5haTJvECjLbYRy6RV2v6wRPNbYRHN3og87h/8
2HUYfYCVebbJdzSwkQGApPty9mx2wr3EwB7KTT+IjXkp
-----END CERTIFICATE-----
Karsten.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4705 bytes
Desc: S/MIME Cryptographic Signature
Url : /pipermail/attachments/20040110/e994e111/smime.bin
More information about the Gpa-dev
mailing list