1

I built a TCP server (using Netty). If I pass an SSLContext during the server initialization then the server will start encrypting the messages between it and the clients.

I have a certificate and private key (of type DER). How can I create an SSLContext from those?

user207421
  • 305,947
  • 44
  • 307
  • 483
Kam
  • 5,878
  • 10
  • 53
  • 97
  • What is the significance of the OpenSSL tag? Please forgive my ignorance. – jww Jul 10 '16 at 03:56
  • I put it there because I understood for other posts that I might need to generate jks file from my certificate and that I think I'd need openssh to generate it – Kam Jul 10 '16 at 04:41
  • 1
    You do, and that's why this is indeed a duplicate of [this](http://stackoverflow.com/questions/991758/how-to-get-an-openssl-pem-file-from-key-and-crt-files?noredirect=1&lq=1). – user207421 Jul 12 '16 at 23:34
  • So there isn't a way to programmatically generate a jks file without calling openssh commands? – Kam Jul 12 '16 at 23:36

0 Answers0