bouncycastle Questions

4

Solved

I'm trying to execute code to perform the Diffie-Hellman key exchange. I sourced the code from an example online (forget where now). I had to import the bouncycastle.jar, which I assumed worked up ...
Nymphet asked 18/3, 2014 at 12:32

1

Solved

I'm familiar with basic cryptography in java But have zero experience in bouncycastle, Recently I came across a requirement that needs to read an encrypted and signed file from FTP. The sender has ...
Musk asked 17/7, 2022 at 9:5

2

I'm working on a project which needs to generate GPG-Keys for public-key encryption. My language of choice for it is Scala and the library for the cryptographic stuff is BouncyCastle Key generatio...
Asperges asked 9/4, 2011 at 20:29

2

For supporting HTTPS connections through a Java 1.6 API to remote hosts using TLS 1.2, we have developed a customized TLS SocketConnection factory based on Bouncy Castle Libraries (v. 1.53) It's v...
Hypostatize asked 4/11, 2015 at 8:56

3

Solved

I am getting below Exception which I observed when running Android app - it does not occurs when I run the code below as JUnit. java.security.NoSuchAlgorithmException: ECDSA KeyPairGenerator not ...
Xmas asked 6/12, 2018 at 15:14

2

Solved

I'm trying to encrypt communication between Java (BouncyCastle) and iOS using the Apple algorithm eciesEncryptionCofactorVariableIVX963SHA256AESGCM. The algorithm by Apple is not well documented, b...
Donato asked 5/11, 2020 at 17:35

1

I am trying to perform Asymmetric Encryption and Decryption using RSA and OAEPPadding on actually larger data, say, 10 KB. Many Stackoverflow articles mentioned to use the Hybrid approach [Assymmet...
Disposed asked 25/2, 2022 at 15:40

2

I have a big project written in Grails 2.3.8. Sometimes when I deploy it using my CI I got this message: Unable to complete the scan for annotations for web application [/ProjectName##1152] due to...
Chili asked 29/5, 2014 at 7:16

2

Solved

I am trying to read a PKCS#8 private key which looks like following: key.k8 --> (Sample key. Passphrase - 123456): -----BEGIN ENCRYPTED PRIVATE KEY----- MIIFLTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BB...
Meperidine asked 20/1, 2022 at 12:30

1

Solved

I have a private key that was generated by running: openssl req -new -sha384 -x509 -days 63524 -subj "/C=CA/ST=State/L=City/O=Org/CN=Org-CA" -extensions v3_ca -keyout Org-CA.key -out Org-...
Illyria asked 30/12, 2021 at 0:15

2

i am trying to decrypt a pkcs8 encrypted private key using bouncy castle library. I parsed the file containing the private key using PEMParser provided by bouncy castle. I got PKCS8EncryptedPrivate...
Dearden asked 22/4, 2015 at 6:56

2

Solved

I was trying to extract RES public key from the file below -----BEGIN CERTIFICATE----- MIIGwTCCBamgAwIBAgIQDlV4zznmQiVeF45Ipc0k7DANBgkqhkiG9w0BAQUFADBmMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgS...
Dysthymia asked 10/6, 2014 at 9:28

0

I generated RSA keys and my backend sends 3 parameters in BASE64 (except signatureAlgorithm) for creating CSR to me: "subject" : "MIGfMQswCQYDVQQGEwJJUjEvMC0GA1UEAwwmMTAwMDAwMzg1MDA3...
Anthropography asked 29/11, 2021 at 8:22

6

Solved

I cannot find any code/doc describing how to sign a CSR using BC. As input I have a CSR as a byte array and would like to get the cert in PEM and/or DER format. I have gotten this far def signCSR...
Homothermal asked 29/8, 2011 at 12:52

2

I have a c# program that uses BouncyCastle. If I insert a reference to iTextSharp, the compiler generates many errors of classes already existing in both references. I have specified all the namesp...
Vaniavanilla asked 4/1, 2019 at 18:40

2

Solved

I'm writing an app that'll exchange data between a phone and a Windows PC, and I want to protect the data sent with key generated with a Diffie-Hellman exchange. I'm trying to use BouncyCastle for...
Mollusc asked 17/3, 2015 at 0:24

2

In Java 8, I've globally registered the Bouncy Castle security provider by doing the following steps: copy bouncycastle jar to jre/lib/ext add security.provider.<N>=org.bouncycastle.jce.prov...
Teachin asked 29/8, 2019 at 20:41

4

Solved

I've seen a number of posts, followed a number of tutorials but none seems to work. Sometimes, they make reference to some classes which are not found. Can I be pointed to a place where I can get a...
Akira asked 8/8, 2011 at 19:49

1

Solved

I'm currently signing using code that looks as below. I'm trying to find a way to create deterministic signatures. Is that possible with BouncyCastle? var curve = SecNamedCurves.GetByName("sec...
Squier asked 23/8, 2021 at 21:8

4

I have a password protected, encrypted RSA private key, which was created with PyCrypto (2.6.1) and has according to their docs the following format: PrivateKeyInfo, PKCS#8 (DER SEQUENCE), PEM (RFC...
Fraunhofer asked 7/4, 2014 at 18:21

2

I have a X509Certificate, derived from CMSSignedData(PKCS7). My question is how can I get the URL to the CRL file to check whether the certificate was revocated. I've tried the code below: X509Cer...
Actualize asked 21/11, 2017 at 9:54

1

Solved

I'm trying to create a TLS connection with client authentication using BouncyCastle in C#. However I'm unsure how to properly set the context and I'm receiving an exception "Cannot be null for...
Foltz asked 9/7, 2021 at 12:56

2

Solved

I am trying to generate signature using ECDSA with secp256r1 curve (P256) and SHA256 algorithm for message hash. Also i am using Bouncy Castle libraries. Code below, public class MyTest { /** ...
Ariadne asked 12/8, 2014 at 10:18

2

Solved

How can one programmatically obtain a KeyStore from a PEM file containing both a certificate and a private key? I am attempting to provide a client certificate to a server in an HTTPS connection. I...
Unopened asked 19/9, 2012 at 18:57

2

Solved

I am new to the security side of Java and stumbled across this library called BouncyCastle. But the examples that they provide and the ones out on the internet ask to use return new PKCS10Certifica...
Derwood asked 12/12, 2013 at 0:43

© 2022 - 2025 — McMap. All rights reserved.