使用jets3t库连接到AWS S3时遇到SSLException

时间:2014-10-15 16:57:28

标签: java ssl amazon-web-services amazon-s3 jets3t

使用Jets3t库与S3通信时遇到SSL错误。

我们在大约一年前遇到类似的问题,亚马逊简单的电子邮件服务似乎是由亚马逊升级他们的电子邮件服务器引起的,这导致使用Diffie-Helman(DH)密码的SSL连接抛出异常。我们通过在接受密码列表中省略DH密码来解决此问题。

我有两个问题:

  1. 其他用户是否遇到过这些错误?
  2. 如果是这样,你能解决它们吗?
  3. 似乎用户可以限制用于jes3t SSL连接的密码,但是通过阅读configuration page并不能立即明白如何做到这一点。

    以下是一些更相关的信息

    • 我们正在使用在Java 7上运行的jets3t的0.8.1版本
    • 尝试检索S3对象时,我们遇到以下错误序列:

      [2014-10-15 09:30:30,102][INFO][HttpMethodDirector:439] I/O exception     (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeException: Could not generate DH keypair
      [2014-10-15 09:30:30,103][INFO][HttpMethodDirector:445] Retrying request
      [2014-10-15 09:30:30,112][INFO][HttpMethodDirector:439] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeException: Could not     generate DH keypair
      [2014-10-15 09:30:30,112][INFO][HttpMethodDirector:445] Retrying request
      [2014-10-15 09:30:30,120][INFO][HttpMethodDirector:439] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeException: Could not generate DH keypair
      [2014-10-15 09:30:30,121][INFO][HttpMethodDirector:445] Retrying request
      [2014-10-15 09:30:30,130][INFO][HttpMethodDirector:439] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeException: Could not generate DH keypair
      [2014-10-15 09:30:30,130][INFO][HttpMethodDirector:445] Retrying request
      [2014-10-15 09:30:30,140][INFO][HttpMethodDirector:439] I/O exception (javax.net.ssl.SSLException) caught when processing request: java.lang.RuntimeException: Could not generate DH keypair
      [2014-10-15 09:30:30,141][INFO][HttpMethodDirector:445] Retrying request
      [2014-10-15 09:30:30,149][ERROR][ReportListServiceImpl:163] Exception retrieving report data, report_id="4466", data_source="S3"
      com.irhythm.algorithmdriver.s3service.exception.S3RetrievalException: Request Error: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
      

    任何信息或帮助将不胜感激。

0 个答案:

没有答案