Re: Error 30007 Private key must be loaded or gen - WeOnlyDo Discussion board

Re: Error 30007 Private key must be loaded or gen (General questions)

by Giovanni Chiappini, Tuesday, October 26, 2004, 17:14 (7124 days ago) @ wodSupport

Wow,

this is a fast support :)
i extract few rown of code from sample 4:

Private Sub Command1_Click()
Cert.GenerateKey 'RSAkey
Call DisplayPlublic
end sub

Private Sub DisplayPlublic()
On Error Resume Next
Dim a As String

a = Cert.PublicKeyOpenSSH
If Err = 0 Then Text2.Text = a
End Sub

i have understand that, after generation, i can get with function PublicKeyOpenSSH the public key to copy on the server.
The raw versione of public key in returned without error.

thanks again


Complete thread: