Skip to content
Advertisement

Tag: pem

Need to add certificate from txt file in runtime

Client has given 2 certificates in ‘.txt’ format and I need to add these certificates during runtime while invoking the SOAP service. Unable to add ‘.txt’ format files as i am getting like ‘Invalid Format’. Certificates have “—–BEGIN CERTIFICATE—–” and “—–END CERTIFICATE—–” headers at the top and bottom of the txt file, so it’s PEM type file (I assume). Any

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

Write x509 certificate into PEM formatted string in java?

Is there some high level way to write an X509Certificate into a PEM formatted string? Currently I’m doing x509cert.encode() to write it into a DER formatted string, then base 64 encoding it and appending the header and footer to create a PEM string, but it seems bad. Especially since I have to throw in line breaks too. Answer This is

Import PEM into Java Key Store

I am trying to connect to an SSL server which requires me to authenticate myself. In order to use SSL over Apache MINA I need a suitable JKS file. However, I have only been given a .PEM file. How would I go about creating a JKS file from a PEM file? Answer First, convert your certificate in a DER format

Advertisement