[TriLUG] Converting XML Private Key

Shawn Hood shawnlhood at gmail.com
Wed May 13 16:56:33 EDT 2009


John,

Though the keys are encapsulated in XML tags, it looks like the actual
key are typical base-64, and perhaps "usable" by openssl.  Give it a
shot.

On Wed, May 13, 2009 at 4:26 PM, John Wheeler
<jwheeler at etherealfringe.com> wrote:
> I have run across something that has me quite stumped.
>
> I work on the receiving end of a data feed upon which the rest of the team
> builds an application.
> My job is data mapping and processing. Yes, boring... i know.
>
> Recently a client became concerned about the safety of some pieces of feed
> data.
> So they sent us an application called RSA.exe that generated a
> public/private RSA keypair.
> (example appended below)
>
> So we sent them the public key, and some fields in the data stream are now
> base64 encoded strings.
>
> My problem is that i have to decrypt these strings. And this is all the
> information that i have.
> Long story short, i cannot get OpenSSL to recognize this Key Store Format. I
> am tempted to say that is is an export format supported by the .NET
> framework.
> Being an open source shop here we do not delve into such mysteries.
>
> If anyone recognizes or has a suggestion as to how i should go about
> processing a key store like this, I would be much obliged.
>
>
> Keys are in the format of the following: (real values but of course not the
> set we are using)
>
> Public key:
> <RSAKeyValue><Modulus>wroG1oc9DGAIWeDjaZ8wPNvjNnoZ5XZp8D3/9utI6Cyqp8WIITCZdkMwpZ
> YLJgjfGUxrvM0KecN5+HHFz8KzVgebxCJEwGfDUbb7wmS6zKJNORDfKDo/G769N45RyWOqc0FZvove93
> WCfF8+MpskQh/vLlrL86EJR0+5MHjMpac=</Modulus><Exponent>AQAB</Exponent></RSAKeyVal
> ue>
>
> Private key:
> <RSAKeyValue><D>kuO7VsbrkVM72Xjgc4OG4tHIYwbWVBbwMS7D0GKKO8G99hL27np3uRNUNgSqYkWc
> 7buNJf3SIioH7xb77g5kMndfm924B7DoXH3k8p8wjvTstdyFyG+YRydGShhGsBh/njPYbk3IkPZ26RMj
> r6GRRy5HF+NxWfkvvwCcWCrxABE=</D><DP>OliC3puvMSD5vgkHiybUUxqjQ0WepuU48XARb3C2M0bN
> /2gxbQuT0iPYbnuRZ2kOrPzNYSO9c0s1apszzXn8wQ==</DP><DQ>myQAkY1GUQHLmUGiCQ81JDf2X90
> 9a/pOc1IXlaPhihdevdhNuil1Y2glckE9zVpkyusHVa0B9YDWDa7Ciyuf6Q==</DQ><InverseQ>LvMe
> ahcblnFbB0F6J7tIz5FvjlX8hWnihcLRqi+nbAlH/n07L5Ndllfunt42XwZ/7Ft9gm4Rh9Nk0Wry8tzo
> iQ==</InverseQ><P>45uCDxgahtRHqjimGRZsKLNMCWZt562XBQN1BWWCviAzyEMPcJgmfLQXr1wohI
> xIgOgFVRtJAZhFFjIzVQ5L/w==</P><Q>2wR+IurAet0laSQRBYbhZZa+Cj5rmEJzwiyg3iS7rjxjcb4
> TxD2Eclt35KQLv8pHSarV2HDYzNimy29HS/PGWQ==</Q></RSAKeyValue>
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions
>



-- 
Shawn Hood
910.670.1819 m



More information about the TriLUG mailing list