Re: Error 30007 Private key must be loaded or gen (General questions)
I'm not sure why your code doesn't work. I tried something similar and it does work for me:
[code] Dim cert As New Certificate
On Error Resume Next
cert.LoadKey App.Path & mykey
If Err <> 0 Then
cert.GenerateKey 0 'rsakey
cert.SaveKey App.Path & mykey
End If
MsgBox cert.PublicKeyOpenSSH[/code]
Can you try it out and change to it suits your needs?
Complete thread:
- Error 30007 Private key must be loaded or generat - Giovanni Chiappini, 2004-10-26, 16:07
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-26, 16:10
- Re: Error 30007 Private key must be loaded or gen - Giovanni Chiappini, 2004-10-26, 17:14
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-27, 14:45
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-27, 14:59
- Re: Error 30007 Private key must be loaded or gen - Giovanni Chiappini, 2004-10-27, 15:29
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-27, 15:44
- Re: Error 30007 Private key must be loaded or gen - Giovanni Chiappini, 2004-10-27, 16:17
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-28, 19:53
- Re: Error 30007 Private key must be loaded or gen - Giovanni Chiappini, 2004-10-27, 16:17
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-27, 15:44
- Re: Error 30007 Private key must be loaded or gen - Giovanni Chiappini, 2004-10-27, 15:29
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-27, 14:59
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-27, 14:45
- Re: Error 30007 Private key must be loaded or gen - Giovanni Chiappini, 2004-10-26, 17:14
- Re: Error 30007 Private key must be loaded or gen - wodSupport, 2004-10-26, 16:10