RE: Problem with accents in certificate...

2006-06-14 Thread Bastien Gauthier
So the returned strings is UTF-8 ?  That is what we want to use.  We use the 
Zope application server (Python) that works in UTF-8 too, but when displaying 
the data, it seemed that it did not display correctly...  We'll investigate ;-)

Thank you for your fast response...

BASTIEN Gauthier
Service Informatique - Administration Communale de Sambreville
071/260.247
http://www.sambreville.be

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Victor Duchovni
Envoyé : mardi 13 juin 2006 17:52
À : openssl-users@openssl.org
Objet : Re: Problem with accents in certificate...

On Tue, Jun 13, 2006 at 05:03:16PM +0200, Bastien Gauthier wrote:

 I use OpenSSL to retrieve informations from a certificate, but when an
 accent is present (? ? ?, ? ? ?, ...) the ? openssl x509 -text ? return
 the accent in a bad encoding ?
 
 St?phan become St\xC3\xA9phan...
  
 Is there a way to avoid this ?

No, it is correctly stored as utf8. How would a receiving application
know whether your name is iso-8859-1 (Latin) or iso-8859-6 (Arabic)?

If you want to view the data as iso-8859-1 you have to decode from utf8.

-- 
Viktor.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


RE: Problem with accents in certificate...

2006-06-14 Thread Bastien Gauthier
By the way, we are using mod_ssl (OpenSSL) with Apache2, is there a way to 
change the openssl x509 command somwhere (we wish to add some -nameopt 
parameter ;-)) in Apache ?

Thank u!

BASTIEN Gauthier
Service Informatique - Administration Communale de Sambreville
071/260.247
http://www.sambreville.be

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Bastien Gauthier
Envoyé : mercredi 14 juin 2006 8:31
À : openssl-users@openssl.org
Objet : RE: Problem with accents in certificate...

So the returned strings is UTF-8 ?  That is what we want to use.  We use the 
Zope application server (Python) that works in UTF-8 too, but when displaying 
the data, it seemed that it did not display correctly...  We'll investigate ;-)

Thank you for your fast response...

BASTIEN Gauthier
Service Informatique - Administration Communale de Sambreville
071/260.247
http://www.sambreville.be

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Victor Duchovni
Envoyé : mardi 13 juin 2006 17:52
À : openssl-users@openssl.org
Objet : Re: Problem with accents in certificate...

On Tue, Jun 13, 2006 at 05:03:16PM +0200, Bastien Gauthier wrote:

 I use OpenSSL to retrieve informations from a certificate, but when an
 accent is present (? ? ?, ? ? ?, ...) the ? openssl x509 -text ? return
 the accent in a bad encoding ?
 
 St?phan become St\xC3\xA9phan...
  
 Is there a way to avoid this ?

No, it is correctly stored as utf8. How would a receiving application
know whether your name is iso-8859-1 (Latin) or iso-8859-6 (Arabic)?

If you want to view the data as iso-8859-1 you have to decode from utf8.

-- 
Viktor.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Problem with accents in certificate...

2006-06-13 Thread Bastien Gauthier








Hi,



I use OpenSSL to retrieve informations from a certificate,
but when an accent is present («é», «è», ) the «openssl
x509 text» return the accent in a bad encoding?



Stéphan become St\xC3\xA9phanIs there a way to avoid this?Thank you,



BASTIEN Gauthier

Service Informatique - Administration Communale de
Sambreville

071/260.247

http://www.sambreville.be










Re: Problem with accents in certificate...

2006-06-13 Thread Victor Duchovni
On Tue, Jun 13, 2006 at 05:03:16PM +0200, Bastien Gauthier wrote:

 I use OpenSSL to retrieve informations from a certificate, but when an
 accent is present (? ? ?, ? ? ?, ...) the ? openssl x509 -text ? return
 the accent in a bad encoding ?
 
 St?phan become St\xC3\xA9phan...
  
 Is there a way to avoid this ?

No, it is correctly stored as utf8. How would a receiving application
know whether your name is iso-8859-1 (Latin) or iso-8859-6 (Arabic)?

If you want to view the data as iso-8859-1 you have to decode from utf8.

-- 
Viktor.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]


Re: Problem with accents in certificate...

2006-06-13 Thread Peter Sylvester

If your shell is using utf8 you can use -nameopt utf8

Victor Duchovni wrote:

On Tue, Jun 13, 2006 at 05:03:16PM +0200, Bastien Gauthier wrote:

  

I use OpenSSL to retrieve informations from a certificate, but when an
accent is present (? ? ?, ? ? ?, ...) the ? openssl x509 -text ? return
the accent in a bad encoding ?

St?phan become St\xC3\xA9phan...
 
Is there a way to avoid this ?



No, it is correctly stored as utf8. How would a receiving application
know whether your name is iso-8859-1 (Latin) or iso-8859-6 (Arabic)?

If you want to view the data as iso-8859-1 you have to decode from utf8.

  



--
To verify the signature, see http://edelpki.edelweb.fr/ 
Cela vous permet de charger le certificat de l'autorité; 
die Liste mit zurückgerufenen Zertifikaten finden Sie da auch. 



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem with accents in certificate...

2006-06-13 Thread Dr. Stephen Henson
On Tue, Jun 13, 2006, Bastien Gauthier wrote:

 Hi,
 
  
 
 I use OpenSSL to retrieve informations from a certificate, but when an accent 
 is present (« é », « è », ...) the « openssl x509 -text » return the accent 
 in a bad encoding ?
 
  
 
 Stéphan become St\xC3\xA9phan...
  
 Is there a way to avoid this ?
  

Yes you can try playing with the -nameopt options. The precise version you use
depends on the terminal. See the manual page for more details.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   [EMAIL PROTECTED]