bouncycastle Questions

3

Solved

I am doing an SSL3 handshake using an SslStream, but, in spite of my best efforts, the SslStream never sends a client certificate on my behalf. Here is the code: SSLConnection = new System.Net.Sec...
Bracer asked 28/5, 2010 at 21:57

1

Solved

I am working on a project where I generate an EC private key using Java and then import it in the browser using JavaScript. The key imports successfully in Chrome, but it fails in Safari.Here’s my ...
Suspend asked 13/8, 2024 at 7:24

2

I was doing a code review / pull request merge this morning, and discovered: "using org.bouncycastle.asn1.ocsp;" ...in a .cs page for my WebAPI. The most recent previous addition was my a...

12

I'm trying to create a certificate using the BouncyCastle.Crypto dll, which is then used to authenticate a SslStream as the server in a Windows Service process, which runs under the Local System ac...
Contortionist asked 2/11, 2011 at 17:48

3

Solved

I am trying to create a signature as shown below, but I am getting this error: java.lang.NoSuchFieldError: xmss_SHA256ph I am using bcprov-jdk15on and bcpkix-jdk15on version 1.64 and Java 8. I h...
Majunga asked 25/3, 2020 at 17:37

2

Solved

I am trying to read an RSA private key into .Net using BouncyCastle to test data I have previously encrypted. The encrypted data is working fine using the public key and Bouncy Castle and I have al...
Kellner asked 28/11, 2013 at 15:8

2

Solved

Is it possible to read the RSA private key of format PKCS1 in JAVA without converting to PKCS8? if yes, sample code is appreciated. -----BEGIN RSA PRIVATE KEY----- BASE64 ENCODED DATA -----END RS...
Parasitism asked 30/1, 2017 at 11:31

3

I am facing issue in configuring Bouncy Castle with my websphere. I am working on pdf document signature and it requires dependency of Bouncy Castle. I am using websphere v8.5, java 6 and bcprov-jd...
Manchu asked 2/4, 2015 at 5:39

3

Solved

I am trying to decrypt PGP encrypted string using the BouncyCastle PGP SDK. I have tried several approaches and in each case I get a following error at the beginning of the process (exact place sh...
Hallucinatory asked 6/11, 2017 at 10:40

4

Solved

Is there any way to convert a Org.BouncyCastle.X509.X509Certificate to System.Security.Cryptography.X509Certificates.X509Certificate2? The inverse operation is easy, combining Org.BouncyCastle.X50...
Megasporophyll asked 15/11, 2011 at 12:55

5

I need to create a self signed X509 Certificate with Bouncy Castle in Java, but every class I try to include is deprecated. How can I solve this? Is there some other class to include? Thanks
Omnivorous asked 24/4, 2015 at 16:4

7

Solved

I'm having problems inserting a new CA certificate with privatekey in the Root certificate store of the localmachine. This is what happens: //This doesn't help either. new StorePermission (Permi...
Triarchy asked 2/9, 2010 at 9:7

3

Solved

I have a .crt certificate and a .key private key file on a Linux machine. The private key is in encrypted PKCS#8 format (BEGIN ENCRYPTED PRIVATE KEY...). I would like to import these into an X509Ce...
Atalanta asked 30/9, 2019 at 18:36

3

Solved

I'm trying to figure out which "safe" ECC curves are supported in Bouncy Castle. I found a few curves in the namespace Org.BouncyCastle.Asn1, but they are hard to find, and I'm sure I'm missing som...
Mercier asked 17/3, 2014 at 14:57

4

Solved

UPDATED 2019: Bouncycastle now support PBKDF2-HMAC-SHA256 since bouncycastle 1.60 Is there any reliable implementation of PBKDF2-HMAC-SHA256 for JAVA? I used to encrypt using bouncycastle but i...
Technical asked 22/3, 2014 at 17:13

4

I use iText 5.5.0 and BouncyCastle bcprov-jdk15on-1.50 for digitally signing a pdf. It all works fine if I do not include a time stamp in the MakeSignature.signDetached method. When I use the TSAC...
Appertain asked 19/3, 2014 at 17:30

3

Solved

I am using the "BouncyCastle.Crypto.dll" for encrypt/decrypt a string in my app. I am using the following code from this blog: I have a class BCEngine, exactly the same as the one given in the li...
Tight asked 6/5, 2011 at 11:3

5

I want to use BouncyCastle for GnuPG encryption (want to get .gpg file) in android. But I am getting this error.(Unsupported class file major version 59. Failed to transform bcprov-jdk15on-1.67.jar...
Coarse asked 7/12, 2020 at 13:50

4

Solved

i would like to know if bouncycastle source code has been published. if yes where could I find it. so far I have found nothing really usefull.
Fourpence asked 11/11, 2013 at 11:10

2

Solved

Objective: Secure my Java application from reverse engineering. Idea: split the program into two halves (loader and program) loader will be a regular jar program will be an encrypted jar file...
Geometry asked 21/3, 2012 at 18:43

6

Solved

I need to encrypt a stream with pgp using the bouncycastle provider. All of the examples I can find are about taking a plain text file and encrypting that however I won't have a file and it's impor...
Convey asked 15/10, 2010 at 4:9

2

Solved

I am attempting to decrypt a file using BouncyCastle in C# that has been encrypted with RSA via Kleopatra. Unfortunately, I am receiving an error that states "Unknown packet type encountered: ...
Incisive asked 6/5, 2022 at 18:13

4

Solved

I am trying to create an online database application using PHP for the server and C# form application for the client. On the server I encrypt a simple string using a public RSA key with the PHPSecL...
Menispermaceous asked 23/10, 2015 at 11:40

1

Solved

I have a correct, working, LTV implementation of adbe.pkcs7.detached PDF signatures that was made following ISO32000 2008-1 and RFC5652 guidelines. Now i'm trying to also allow for ETSI.CAdES.detac...
Mix asked 25/8, 2022 at 5:3

2

Solved

I'm trying to create an RSA keypair using BouncyCastle and then try to import generated public key and I'm receiving the following error AsnContentException: The provided data is tagged with 'Unive...
Economically asked 27/5, 2022 at 11:52

© 2022 - 2025 — McMap. All rights reserved.