You can save keys from keys manager to an XML file http://www.aleksey.com/xmlsec/api/xmlsec-keysmngr.html#XMLSECSIMPLEKEYSSTORESAVE Aleksey