Using HttpClient with SSL and certificates

后端 未结 2 913
北恋
北恋 2021-01-25 14:19

While I\'ve been familiar with HTTPS and the concept of SSL, I have recently begun some development and found I am a little confused.

The requirement was that I write a

相关标签:
2条回答
  • 2021-01-25 14:48

    The keystore holds your private keys and associated certificates. The truststore hold the certificates that you trust and that can therefore be used for certificate path building and verification.

    Here are some links that may be useful:

    java.lang.Exception: Input not an X.509 certificate

    Import private key and certificate into Java Key Store

    Configuring Keystores and Truststores

    0 讨论(0)
  • 2021-01-25 14:50

    make sure your certificate file does not have anything before and after these.

    -----BEGIN CERTIFICATE-----

    -----END CERTIFICATE-----

    0 讨论(0)
提交回复
热议问题