Anders Bruun Olsen writes: > dn:: Y249SvhyZ2VuIEphbmdtYXJrLG91PWhsLG91PXBlcnNvbmFsX2FkZHJlc3Nib29rcyxvdT1hZ > GRyZXNzYm9va3MsZGM9ZHNsLGRjPWRr > cn:: SsO4cmdlbiBKYW5nbWFyaw== Messy. The DN is latin-1, but the CN is UTF-8. You need to convert the DN to utf-8 (after base64-decoding it). -- Hallvard