I tried it directly in the Docker Container / EventStore. Getting correct nginx Server now. No more 501. Curl now yields the following result
curl -v -k -d '[{"eventId": "fbf4a1a1-b4a3-4dfe-a01f-ec52c34e16e4","eventType": "AcceptedEvent","data":{"url": "
https://my.system.com/pr/0815", "correlationId": "b27465e4-a058-406c-90d2-18c29b9f647c" }, "metadata": { "version": 1 }}]' -H "Content-Type:application/vnd.eventstore.events+json"
https://localhost/streams/mystream* Connected to localhost (127.0.0.1) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Request CERT (13):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
* SSL certificate verify ok.
> POST /streams/printing HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost
> Accept: */*
> Content-Type:application/vnd.eventstore.events+json
> Content-Length: 215
>
* upload completely sent off: 215 out of 215 bytes
< HTTP/1.1 400 Bad Request
* Server nginx/1.6.2 is not blacklisted
< Server: nginx/1.6.2
< Date: Fri, 26 May 2017 10:21:08 GMT
< Content-Type: text/html
< Content-Length: 252
< Connection: close
<
<html>
<head><title>400 No required SSL certificate was sent</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>No required SSL certificate was sent</center>
<hr><center>nginx/1.6.2</center>
</body>
</html>
With other Docker applications that expose REST endpoints, I was always able to connect this way. Not here, though.