Can I load the public key from a PEM cert with the
xmlSecSimpleKeysMngrLoadPemCert method?
Will it then be treated as a key or is it only CA certs that should be
loaded this way.

Please, read the code or documentation:

http://www.aleksey.com/xmlsec/api/xmlsec-keysmngr.html#XMLSECSIMPLEKEYSMNGRLOADPEMCERT

If not I will still have the problem with loading X509 PEM-certificates
starting with
"-----BEGIN CERTIFICATE-----".

Sorry, but it is OpenSSL limitation.

Or should I use xmlSecKeyReadPemCert together with
xmlSecSimpleKeysMngrAddKey?

You also may use xmlSecSimpleKeysMngrLoadPemKey() + xmlSecKeyReadPemCert()
(you should probably look at the readPemKey() function in apps/xmlsec.c file).


Aleksey.

_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to