[OpenSAML] Can i add '.cer' and '.key' content to my own XML config file and read it from there to create 'X509Credential'

19 views
Skip to first unread message

Its Me

unread,
Mar 20, 2011, 9:10:33 AM3/20/11
to mace-open...@internet2.edu
Dear All,

    Please help me with this general question. I have a 'some_cert.cer' file and 'origin-some-vcert1.key' file, i read these files using Java IO stream and create the 'X509Credential'. My question is : Can i configure  '.cer' and '.key'  file content in my own XML file and read it from there as a string rather than read it from File using Java IO?

Thank you,
Suguna

Chad La Joie

unread,
Mar 20, 2011, 11:10:13 AM3/20/11
to mace-open...@internet2.edu
If you look in the security package there are helper classes that can
create keys, certs, and CRLs from byte[]. So if you're going to create
your own custom encoding that's what you'd use.

--
Chad La Joie
http://itumi.biz
trusted identities, delivered

Reply all
Reply to author
Forward
0 new messages