[xmlsec] using public key without loading from file

Simon Meiklejohn Simon.Meiklejohn at perform-sol.com
Wed May 25 21:18:32 PDT 2005


I'm wanting to write a program to validate signed xml (signed using an
RSA/openSSL private key) using a public key linked to my application.
I've been looking at  

xmlSecKeyDataBinRead ()

is this the appropriate function for the task, to convert by raw key to
xmlSecKeyPtr?
 
Using openssl to create the private and public keys i have the following
 
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMYkh5vHrw5uBp4BFZgyLKnbko
qfQqiZuOfUdwTfg+i5J9rPpkEiX3TDIkLiDqV+GTbgOjip2psKMNkcQmdHZhUcVd
qRZIxAe3EEqEHDh1gk+Pw565zfyLs7s02InN6NAm7YmzVczPe/84TI0ZDfm6b5Al
0wLFXTLqm+QAYsG/BQIDAQAB
-----END PUBLIC KEY-----

Should this be the contents of the  const xmlSecByte* buf parameter, or
more of a binary format?
Strip the ---Begin.... ... End----- stuff out or leave it in?
 
Cheers
 
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20050526/9a5ba059/attachment-0002.htm


More information about the xmlsec mailing list