EldoS | Feel safer!

Software components for data protection, secure storage and transfer

No Secret Key

Posted: 10/02/2013 15:21:41
by Steven Fletcher (Basic support level)
Joined: 10/01/2013
Posts: 2

I don't have a "Secret Key" I only have a "Public Key" and a PassPhrase (and/or KeyPassphrase?).

I can decrypt my PGP file using PGP Desktop, but not with SB

Of course, I am getting this error when doing "DecryptAndVerify()":

"No appropriate OpenPGP secret key for decryption found"

I've seen this error a lot on the forum, but nobody else is saying they don't have a "Secret Key". So I don't know what I'm doing wrong. It seems so simple:

    Sub Main()

        Dim KeyRing As New TElPGPKeyring
        KeyRing.Load("c:\lawl.asc", "c:\lawl.asc", 0)

        Dim PGPReader As New TElPGPReader
        PGPReader.DecryptingKeys = KeyRing
        PGPReader.VerifyingKeys = KeyRing
        PGPReader.KeyPassphrase = "mykeyphrase"

        Using inF As New System.IO.FileStream("C:\lawl.txt.pgp", FileMode.Open)
            PGPReader.DecryptAndVerify(inF, 0) 'Error Here
        End Using

    End Sub
Posted: 10/02/2013 15:32:24
by Ken Ivanov (Team)

Hello Steven,

Thank you for contacting us.

You won't be able to decrypt data without having an appropriate secret key (in neither 'honest' nor some 'dishonest' way). If PGP Desktop is able to, it does have the secret key somewhere.

Posted: 10/03/2013 12:29:28
by Steven Fletcher (Basic support level)
Joined: 10/01/2013
Posts: 2

Thank you, Ken.

Being new to PGP, I didn't know any better. But the person managing our PGP-Desktop application assured me there was no Secret Key.

Of course, I had to come see myself after your response, and had to school him on how computers work, lol.

Thanks for the quick reply, we found our generated Secret Key inside PGP-Desktop, and now things are working correctly.



Topic viewed 485 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!