You can load key yourself and then set it in the xmlSecKeyData object using these functions: * OpenSSL: http://www.aleksey.com/xmlsec/api/xmlsec-openssl-evp.html * NSS http://www.aleksey.com/xmlsec/api/xmlsec-nss-pkikeys.html Aleksey