Skip to content
Advertisement

Tag: certificate

How to convert certificate from PEM to JKS?

I have to convert a certificate in PEM format into an Java key store. To use this one with tomcat at a windows server I’ve got those files: cert_request.csr cert_public_key.pem cert_private_key.pem cert.txt I tryed to combine the pem files (by combining the two files were chain together) and converted this with openssl into an .der file and import that with

Java Bouncy Castle OCSP Url

I am using bouncy castle 1.48 to verify certificate validation with OCSP. It works good. But I’m using Ocsp Url as static variable and I want to read it from certificate. Url is written in certificate as Authority Info Access I got org.bouncycastle.asn1.x509.AuthorityInformationAccess object from certificate which writes AuthorityInformationAccess: Oid(1.3.6.1.5.5.7.48.1) but cant get Url from there Answer I found the

Creating ASN1 encoded signature in C# to send to Java

I have a private/public secure cert. My Java counterparts have the public key. I have the need to take a string, sign it, and send it along to Java to then verify the data and signature. There appears to be a well known issue with how Microsoft and the rest of the world encodes/signs data, something about the way bytes

PKCS#12 : DerInputStream.getLength() exception

I generate a certificate using the keytool command: Then if I try to load it using java security API, after getting the file as a byte[] : I get a DerInputStream.getLength(): lengthTag=127, too big exception. What is wrong? Answer I had this problem and I’ve searched the depths of google and still couldn’t find the answer. After some days battling

Advertisement