Re: UTF8 in certificate DN via OpenSSL's x.509 API

2009-07-20 Thread Roumen Petrov
Thor Lancelot Simon wrote: Can I assume that any data returned when I access the DN of a peer's certificate using OpenSSL are ASCII or UTF8? No, see Howards posts. If not, how do I tell the difference? I think I understand that DNs not encoded as UTF8String should not have high-bit charact

Re: UTF8 in certificate DN via OpenSSL's x.509 API

2009-07-16 Thread Howard Chu
Howard Chu wrote: Thor Lancelot Simon wrote: Can I assume that any data returned when I access the DN of a peer's certificate using OpenSSL are ASCII or UTF8? If not, how do I tell the difference? I think I understand that DNs not encoded as UTF8String should not have high-bit characters in th

Re: UTF8 in certificate DN via OpenSSL's x.509 API

2009-07-16 Thread Howard Chu
Thor Lancelot Simon wrote: Can I assume that any data returned when I access the DN of a peer's certificate using OpenSSL are ASCII or UTF8? If not, how do I tell the difference? I think I understand that DNs not encoded as UTF8String should not have high-bit characters in them -- so if I do th

UTF8 in certificate DN via OpenSSL's x.509 API

2009-07-16 Thread Thor Lancelot Simon
Can I assume that any data returned when I access the DN of a peer's certificate using OpenSSL are ASCII or UTF8? If not, how do I tell the difference? I think I understand that DNs not encoded as UTF8String should not have high-bit characters in them -- so if I do this: X509_NAME_oneline(X509_g