Akka HTTPS (SSL) Server with ssl-conf

后端 未结 3 1142
南笙
南笙 2021-02-10 13:06

Akka Version:

  • Akka 2.4.7

Akka Features:

  • HTTPS Server Support

  • Typesafe\'s ssl-config

3条回答
  •  隐瞒了意图╮
    2021-02-10 13:34

    When your HTTPS Server hangs for 1 minute and then produces the "Aborting tcp connection because of upstream failure: No elements passed in the last 1 minute." error, it might be your random number generator does not have sufficient entropy to produce enough random numbers in a reasonable time.

    In my case I 'fixed' this by using a new SecureRandom instead of SecureRandom.getInstanceString when initializing the SSLContext. That seems sufficiently random/secure to me, but of course you should decide for yourself.

提交回复
热议问题