Error while encrypting a file using PGP

Error while encrypting a file using PGP

Comments

  • Hi,

    I’m getting this error trying to Encrypt a file using PGP for the first time. Can you help me to solve the problem?

    Name: Error running step Encrypt File 1[EncryptFile] in flow [PgpEncryptFile]: Exception invoking method EncryptFile on class PGPSteps Exception Message: Error running step Encrypt File 1[EncryptFile] in flow [PgpEncryptFile]: Exception invoking method EncryptFile on class PGPSteps Input Values: -- No Data -- Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Encrypt File 1[EncryptFile] in flow [PgpEncryptFile]: Exception invoking method EncryptFile on class PGPSteps ---> System.Exception: Exception invoking method EncryptFile on class PGPSteps ---> Decsisions.PGP.Steps.Exceptions.WrongPublicKeyStepsException: Wrong public key at Decsisions.PGP.Steps.Processor.GetPgpPublicKey(Stream inputStream) at Decsisions.PGP.Steps.BouncyCastleProcessor.EncryptStream(Stream dataStream, Stream publicKeyStream, Stream outputStream, Boolean asciiArmor) at Decsisions.PGP.Steps.PGPSteps.EncryptFile(Byte[] publicKey, Byte[] data, Boolean binary, String outputFileName) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --

    [img]att1[/img]
    [i]edited by Moshe on 4/22/2019[/i]

  • Hello,

    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Your setup is correct, but this error related to your Public Key. Apparently, flow throwing Wrong Public Key error. Could you please check your PGP Public Key and retry again? You can get test Public and Private Keys from [/font][/color][url=https://sela.io/pgp/]this link[/url][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif] to test your flow with different keys. If you still get the same error message please let me know. [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
    [/font][/color]
    [color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Regards[/font][/color]

  • Thanks a lot. That solved the problem.

Sign In or Register to comment.