-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a pad block corrupted error #19
Comments
@Prasadnair: How did you generate the key? Would be good to have the version too. |
@Prasadnair Did you have the --traditional flag added? |
we are using external certificate. I upload the public key and validated using the private key. private key below -----END PRIVATE KEY----- |
got another issue when tried with another private which I received form the platform team. any insights on this? |
Pad block corrupted error again |
Final Update: Generate a private key, and store it in a file called server.key now I'm getting this error: |
I created the crt using OpenSSL 1.1 with 32 bit. it got success. how this can be achieved using OpenSSL 3.0 Please advise |
@Prasadnair I need to check how I can get this to work for OpenSSL 3. I know that this is an long term issue. |
Hello @claboran,
I'm facing an issue while validating the private key and passphrase. Please advise what would be the root cause of the error "pad block corrupted"
at Org.BouncyCastle.Crypto.Paddings.Pkcs7Padding.PadCount(Byte[] input)
at Org.BouncyCastle.Crypto.Paddings.PaddedBufferedBlockCipher.DoFinal(Byte[] output, Int32 outOff)
at Org.BouncyCastle.Crypto.BufferedBlockCipher.DoFinal(Byte[] input, Int32 inOff, Int32 inLen)
at Org.BouncyCastle.OpenSsl.PemUtilities.Crypt(Boolean encrypt, Byte[] bytes, Char[] password, String dekAlgName, Byte[] iv)
at Org.BouncyCastle.OpenSsl.PemReader.ReadPrivateKey(PemObject pemObject)
at Org.BouncyCastle.OpenSsl.PemReader.ReadObject()
at ForceDotNetJwtCompanion.Util.KeyHelpers.CreatePrivateKeyWrapperWithPassPhrase(String key, String passphrase)
at ForceDotNetJwtCompanion.JwtAuthenticationClient.d__29.MoveNext().
Note:
we are renewing our certificate.
The text was updated successfully, but these errors were encountered: