359 questions
0
votes
0
answers
73
views
How to sign an e-mail with PGP/MIME in Java?
In my Java program, I want to send e-mails signed with an OpenPGP key in PGP/MIME format as defined in RFC 3156. For this, I use PGPainless’ SOP and Angus Mail.
Technically, signing plain text works ...
0
votes
0
answers
137
views
Incompatible PGP keys between openpgp.js and pgpy: Error "14 is not a valid HashAlgorithm"
I'm facing an issue when trying to use PGP keys generated by openpgpjs with pgpy in Python. Specifically, I am encountering the following error:
14 is not a valid HashAlgorithm
Here is my openpgpjs ...
0
votes
0
answers
63
views
PGP Issue : Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC
I am getting below exception when trying to decrypt pgp message in Java 11
Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC
And we are using below bouncycastle ...
0
votes
0
answers
94
views
PGP Issue : org.bouncycastle.crypto.InvalidCipherTextException: block incorrect
Currently we did migration from java 1.8 to java 11. During migration we are facing below decrypting pgp message issue in one of the application.
Caused by: org.bouncycastle.crypto....
1
vote
0
answers
221
views
gpg still asking for passphrase even though it is cached in gpg-agent
I'm trying to have unattended decryption of gpg-encrypted password stores created in pass, but am encountering errors even though my passphrase is cached...
The basic test command I'm using for this ( ...
1
vote
0
answers
577
views
Decrypting OpenPGP message in Node.js with private key, but receiving "No decryption key packets found" error
I'm attempting to decrypt an OpenPGP-encrypted message in a Node.js script using the openpgp library. My script runs into an error where the decryption fails with the message:
Decryption failed ...
-2
votes
1
answer
197
views
How can encrypt\encode (Base64) for a generated key including message with 2nd public data key in OpenPGP medium? [closed]
I'm using Kleopatra after installed Gpg4win. I have generated an RSA key pair with a 1024-bit key size, using my name as the username using Windows Command Prompt. I was suppose to genearte and sign ...
1
vote
1
answer
76
views
Can't get full notations of public key
I try to read my public key with 6 notations from armored text by OpenPGP.js, but I got 4 notations and somehow it has same two notations each.
notations are:
gpg> showpref
[ultimate] (1). ...
0
votes
2
answers
288
views
OpenPGP failing to decrypt a file
I have a Lambda function, written in NodeJS, that decrypts a file using the OpenPGP library. This has worked very well for the past four months but on Thursday last week it stopped decrypting the ...
0
votes
0
answers
243
views
Can you explain this mysterious NodeJS openpgp.decrypt failure when using a verification key?
I have an Azure Function running node's openpgp decryption module. It works fine when we decrypt our own files, but we are receiving a file from a third party that is signed with their public key. We ...
0
votes
1
answer
820
views
BouncyCastle 'Premature end of stream in PartialInputStream' decrypting CSV
I have implemented a PGP service using BouncyCastle.Cryptography v2.3.0 NuGet in C# .NET 7.0.
I have used the service for decrypting files pulled from an SFTP server successfully. Having started ...
1
vote
1
answer
759
views
PGPainless Encrypt file throws UnacceptableSelfSignatureException - does not have a valid/acceptable signature to derive an expiration date from
Im working with PGPainless SOP (1.6.6) to encrypt and sign files.
My routines are fairly basic and are using private and public keys supplied by my customer.
The recipients pubic key doesnt have an ...
0
votes
1
answer
219
views
Output to the PGP encryption logic is incorrect
I am trying to encrypt a message in PGP, but the encryption is not working properly. The encryption message I am getting is not being decrypted. On using a platform online to decrypt and encrypt ...
1
vote
0
answers
350
views
Can't convert #pkc1 pgp private/public key to #pkc8
openSSL pkcs8 -in private-key.pem -topk8 -nocrypt -out private-pkc8.pk8
I run this command and it prompts;
"Could not find private key of key from private-key.pem"
I can't seem to find a ...
2
votes
1
answer
2k
views
Version Conflict with BouncyCastle.Crypto?
I am trying to decrypt a file in PowerShell "7.x". I am explicitly using the Unprotect-PGP cmdlet, but the error message I am getting refers to the Protect-PGP cmdlet. Only thing I can ...