2

I test subEthaSMTP SMTP server. Everything is OK, but I want use SSL/TLS. I read the article about this and have a question.

I have csr, crt and key file, but into article used to PKCS12 , JKS, and SunX509.

Is it possible use csr, crt and key or how to convert it into need format.

P.S. Sorry I am not expert in Java.

Eugene
  • 1,690
  • 3
  • 16
  • 30

1 Answers1

3

The CSR is a Certificate Sign Request. You should already self-sign the certificate or send to a certicate authority. If you are lost in this point, read the certificates howto.

Then you should have a CRT file (The CRT is a X.509 certificate in DER format) self-signed or signed by a Certificate authority, to create a PKCS#12 certificate you should:

  1. Transform the DER certificate to PEM.
  2. Mix PEM and KEY private key file into the PKCS#12 fileformat.

The openssl commands are here in "Converting Using OpenSSL" section.

This stuff is not Java, It's just SSL/TLS.

qbi
  • 2,104
  • 1
  • 23
  • 35