Re: How to use a public key file in VB? (General questions)
Hi Sugi,
Actually you can generate only public key from private key. You cannot do opposite. Private key is master key and public key is key extracted from private key for public use.
However maybe you have private key and you need to extract your public key from it.
Here is example how to receive public key from your private key:
[code]Dim key As New Keys
key.Load c:\private.txt , kay_password
'public key in X509 PEM format
key.PublicKeySave RSAkey, c:\RSApublic.txt
'public key in OpenSSH format
Debug.Print key.PublicKeyOpenSSH(RSAkey)[/code]
and you can find here example how to generate and save private and public key using wodKeys:
http://www.weonlydo.com/index.asp?kb=1&View=entry&EntryID=54
Let us know how it goes.
Regards,
Drazen
Complete thread:
- How to use a public key file in VB? - Sugi, 2012-11-07, 10:17
- Re: How to use a public key file in VB? - woddrazen, 2012-11-07, 10:42