ds:keyname

83 views
Skip to first unread message

wietse

unread,
Jun 20, 2011, 5:51:42 AM6/20/11
to xmlseclibs
i think this is a simple question to answer but i wasn't able to find
the sollution myself so i hope someone can point me in the right
direction!

i am trying to insert a ds:KeyName node into the keyinfo node instead
of the x509data node.

before:
code : $objDSig->add509Cert(file_get_contents('./_cert/
testcrt.crt'));
result :
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>PEM</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>

After :
code : ?????????
result :
<ds:KeyInfo>
<ds:KeyName>mykeyname</ds:KeyName>
</ds:KeyInfo>

thankx for your time...

wietse

Rob Richards

unread,
Jun 27, 2011, 10:42:34 AM6/27/11
to xmlse...@googlegroups.com, wietse
I don't currently have a method to do that specifically. Workaround is
to use the add509Cert method, insert dummy cert and then replace the
X509Data node with the KeyName node manually to the document after the
fact. Or patch the source and create a method to just add KeyName. I
will add a todo to create a general method to allow more generalized and
flexible ways for creating KeyInfo nodes.

Rob

Reply all
Reply to author
Forward
0 new messages