How to generate and save private key and public key with wodCertificate component?
Here is example how to generate and save PrivateKey and PublicKey using wodCertificate component:
Dim key As Certificate
Set key = New Certificate
key.GenerateKey (0) ' 0 is referring to RSAkey type and 1 to DSAkey type
key.SaveKey "c:\RSAprivate.txt", "weonlydo" ' weonlydo is password
Debug.Print key.PublicKeySSH
Debug.Print ""
Debug.Print ""
Debug.Print ""
Debug.Print key.PublicKeyOpenSSH
WodCertificate component is part of wodFtpDLX ActiveX component.
PublicKey is part of PrivateKey. Server need to have your PublicKey if you plean to connect to that server with your PrivateKey.