|
|
|
|||||
|
IceSSL encoding
First of all,
Happy New Year and the best wishes to the ZeroC team and their excellent product ! The Ice Manual states that the default value for the 'encoding' attribute of both 'public' and 'private' elements is PEM. This is not true. The default value is 0. The problem is in: IceSSL::CertificateFile::CertificateFile( ... ) : _filename(""), _encoding(0) // <-- problem here It should be: IceSSL::CertificateFile:CertificateFile( ... ) : _filename(""), _encoding(SSL_FILETYPE_PEM) I would propose also to extend the error messages adding also the encoding type: PEM, DER(ASN1), or unknown. I have also a different philosophical question: Ice has the good mechanism for configuration, why did you decide to use for the IceSSL plugin an absolutely different format -- XML. Cheers, Nikolai |
|
|||||
|
I see your point. But consider also an Ice-based application point of view. I like to have a possibility for the flexible configuration but also I know that in the most cases my application will need only three parameters: capath, certificate, and private key. And for a sake of these three properties I need to provide a 14-line XML-file plus dtd.
The possible workaround is to generate the XML-files on the fly but this will complicate my programs and will require the write access to the underlying filesystem. The other solution could be to set the SSL properties programatically but it is not clear how can I do it. The different question: how can I set up my own certificate verification procedure ? For example, if my certificates contain an application specific extension I'd like to check it. Cheers, Nikolai |
|
||||||
|
Quote:
Quote:
Quote:
Take care, - Mark |
|
|||||
|
Quote:
Quote:
Of course, this is dirty and non-portable trick but maybe the code will be interesting to you in sight of the future modifications. Yet another comment on the IceSSL documentation. The default value for the certificate verification depth is -1 (probably, means infinite) but in the doc it is 10. It is not clear why the RSA key size is the mandatory argument. This value is a property of key/cert and can be extracted from there. -- Cheers, Nikolai |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ICE client encoding GBK error | tangxiaoshu | Help Center | 9 | 12-25-2006 03:17 AM |
| Encoding Problem about Chinese, client compiled by Java, server compiled by C++ | richardma | Help Center | 6 | 12-21-2005 12:00 AM |
| IceSSL for C#/.NET | kwaclaw | Comments | 2 | 09-27-2005 11:49 AM |
| encoding error when Ice java client get string from Ice c++ server | casper | Help Center | 1 | 09-16-2005 04:01 AM |
| Q on Data encoding | ChMeessen | Comments | 3 | 01-28-2005 10:19 AM |