Adding CA to the SSLContext

  Kiến thức lập trình

I am trying to connect with quickfix via SSL and I want to add a chain of certificates programmatically to the SSLContext in quickfix.mina.ssl.SSLContextFactory. I can initialize the keystore and trustmanager just fine but there doesn’t seem to be a setting that can read a .cer file that has the chain of certificates to be added to the trust manager. Is there a way to achieve this?

Thanks!

LEAVE A COMMENT