[xmlsec] How to encrypt with a certain cert?

Aleksey Sanin aleksey at aleksey.com
Thu Apr 24 12:26:21 PDT 2003

1) Get x509 certificates store and do a search for given subject (for 
However, this code will be crypto engine specific (i.e. you'll need to use
xmlSecOpenSSL* functions instead of xmlSecCrypto* functions) because
you want to get pointer to OpenSSL X509 structure.

2) You can find key in the keys manager by name, for example. Assign an
unique name to the key and use xmlSecKeyStoreFindKey() method.


vgecko wrote:

> Questions yet.
> 1. How to find a cert in xmlSecKeysMngr?
> 2. After i added the key to xmlSecKeysMngr, How can i find i when i need?

More information about the xmlsec mailing list