SSL obtained but HTTPS connection resets itself

Weird - to me it seems like nginx is not even serving traffic on that port, because its plaintext “wrong protocol” handler is not working for :443. Could you try from the server:

ss -tlnp

and

openssl s_client -connect 127.0.0.1:443

Check nginx’s error log too.