WodKeys GetPrivateKey returns an empty string (wodSSH / wodSSH.NET)
Hi Guys,
I am trying to enable a feature where a client can specify a private key file. Then using WodKeys, I call the load method and pass the file as a parameter. Next I use the PrivateKey property to retrieve the loaded RSA private key.
The load returns a hr of S_OK. But the private key property always returns an empty string.
Env: VS 6, C++, wodkeys ver: 1.2.3.12
A test private key looks like this:
-----BEGIN RSA PRIVATE KEY-----
MIICWQIBAAKBgQCd3pHjFzNV+vhQolKeWWpB71PYm50s7+xoPNKWcyHLetnzXa5j
eSCRyj4z2U0j8Fp0XGPnzoZUvRxRsWahmLZVVEBhm+fhnH+5ffiq8mK5uwYmLrwB
abENYyBm2BFLOCmtpxXDZ0n86nUs+aIpEvo18zgPhL/o+dCxvWSQ2og4qQIBIwKB
gBsQNkQv3OorBf8xxQUz5lRyK6F5wyxGYwqOFXjgiXNW44jOOyb+0mIiq5PcG9pG
degP1pzEUYrelyPyhp9cAf+62GGE3UJv+D+Yr0W3BC4JaIjP8onkAMFnLq0dmMLc
y4JQlSCVit3bIs/zU+yg3un/HjrQQhttOHbwqLNMkJiLAkEA0EyiSDuYTm+MgcIY
ylrxE/de6Fa/j0tOJgQ+oNu7TcPZOkuBNz+1ir9Jqq2x53EtGzU+ek4abRbB7uXA
ayOvOQJBAMIFhndMRcDoD1bi0NHEvBrXqTQJHX22rGM2i7U6dI0YBuwPBB0K4+Fq
0O41ktZ0s90nz0ua2TpF5Kf8D9tuZPECQE1eSuehG1BVUXIGQ7jf8ySsVnON72Eb
+HSFO9VY7cxtUK9AnbVvb1DKtPZAg+g/+s+Xbvo6RFRnidxj9wM5I9MCQEgQrkmR
W7yt9xGks/YkgGG90SH0wc+bnx2JSdWZXn2MlNtWCNeWVKQu/SVHGUhXO34HeOGR
SV7JgNCuFISz+ZsCQA6y+bIu/TmJk2t+gJ4hCKwQk1BB11TIPqb55Tl5qozbuHBK
xxxbv/dLZjQkvbPvwBfKt5R/efzuHUkjZaKsais=
-----END RSA PRIVATE KEY-----
Thanks
Arun
Complete thread:
- WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 16:43
- Re: WodKeys GetPrivateKey returns an empty string - wodDrazen, 2006-09-21, 16:51
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 17:20
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 20:59
- Re: WodKeys GetPrivateKey returns an empty string - wodSupport, 2006-09-21, 21:19
- Re: WodKeys GetPrivateKey returns an empty string - wodSupport, 2006-09-21, 21:27
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 21:44
- Re: WodKeys GetPrivateKey returns an empty string - wodSupport, 2006-09-21, 21:47
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-22, 00:34
- Re: WodKeys GetPrivateKey returns an empty string - wodSupport, 2006-09-21, 21:47
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 21:44
- Re: WodKeys GetPrivateKey returns an empty string - wodSupport, 2006-09-21, 21:27
- Re: WodKeys GetPrivateKey returns an empty string - wodSupport, 2006-09-21, 21:19
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 20:59
- Re: WodKeys GetPrivateKey returns an empty string - Arun, 2006-09-21, 17:20
- Re: WodKeys GetPrivateKey returns an empty string - wodDrazen, 2006-09-21, 16:51