Skip to contentSkip to conversation

substring subject matching suggestion for new pkcs11 support

Openvpn-devel Albert Siersema 2 participants 2 messages Oct 31, 2005

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

In pkcs11.c instead of
if (!strcmp (szId, szSubject))
could strstr() to match on substring in the subject ? (akin cryptoapicert "SUBJ:...")
This would be easier in distributing config files to clients. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDZiKLKltZixSsH2QRA6K+AJ95Ly7zSQBF3yGUhO+uHut5CIC33wCfbmFj OHgv3p1Lr6JsseD3AcVoVj8=
=fCbT
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 5 lines · Albert Siersema

In pkcs11.c instead of
if (!strcmp (szId, szSubject))
could strstr() to match on substring in the subject ? (akin cryptoapicert "SUBJ:...")
This would be easier in distributing config files to clients.

Hello,

I don't like fuzzy matching, this is why I provide the subject name in the show-pkcs11-objects.

Fuzzy matching causes many problems... What happens if more than one certificate matches? Should I select the first? the last? the best? What if the wrong certificate matches? And the user accidentally perform private key operation with the wrong key?

Best Regards,
Alon Bar-Lev.