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

by Giovanni Chiappini, (7492 days ago) @ Jasmine

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

locked

Complete thread: