Hey,
I have pg 9.6 and as it seems I suffered from the same bug documented in https://www.postgresql.org/message-id/20180104200633.17004.16377%40wrigleys.postgresql.org
From what I saw the root cause is that there is a file (most probably server.key) that has only read only permissions (400). In my case, the server.key permissions are set to 600 and not to 400. In addition, there isnt any file with such permissions (400) in the data dir. I wanted to ask why only read only permissions can cause this bug and if maybe it isnt necessary the root cause.
Thanks.