[xmlsec] Loading a DER-encoded certificate

Aleksey Sanin aleksey@aleksey.com
Mon, 07 Apr 2003 10:29:12 -0700


>
>
>Why do you prefer PEM to DER?  They're simply alternate well-understood
>encodings of exactly the same data, aren't they?  
>
I used to write code when systems did not like 8bit which was used for 
parity check.
In most cases, this problem is gone by now but I still see such problems 
time to time
(for example, you noticed one today --> fopen("rb") :) ). I have never 
had problems
with reading PEM files and this is the main reasons why I prefer base64 
encoded PEM files :)

>I'm not wedded to DER; if
>XMLSec provides better support for PEM because you think it's better, my
>life might be easier if I use that format.  (Windows seems to have a slight
>preference for DER, so I figured I'd make my customers' lives easier by
>using that format.  I don't think it's a big deal to use PEM instead.)
>  
>
Well, if you can wait a couple days I can write a function for reading 
DER certificates by myself
(and include it in xmlsec). Or you can do it yourself, it's a 30 minutes 
exercise :)

Aleksey