bgold0 opened a new issue #98: SSL_ERROR_SYSCALL when enabled SSL
URL: https://github.com/apache/couchdb-docker/issues/98
 
 
   Hi all,
   
   I'm getting an error when trying to enable SSL using this endpoint. Not 
quite sure why this is happening and would love for you guys to take a look at 
my docker file and see if I am doing anything wrong or if this is an internal 
issue.
   
   ## Expected Behavior
   The expected behavior is not to get a refused connection when using https
   
   ## Current Behavior
   When I do a request to the https endpoint, I get the following error:
   > curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 
127.0.0.1:6984
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   ## Steps to Reproduce (for bugs)
   
   1. Use the following docker config, and make any curl request to https
   
   ```
   # Generate SSL cert.
   FROM frapsoft/openssl as config-builder
   WORKDIR /exports
   RUN openssl req -nodes -newkey rsa:2048 -keyout privkey.pem -out couchdb.pem 
-subj "/C=US/ST=Texas/L=Austin/O=Security/OU=IT Department/CN=couchdb"
   RUN echo $'\n\
   [chttpd] \n\
   bind_address = 0.0.0.0\n\
   [daemons] \n\
   httpsd = {chttpd, start_link, [https]}\n\
   [ssl]\n\
   cert_file = /etc/couchdb/cert/couchdb.pem\n\
   key_file = /etc/couchdb/cert/privkey.pem\n\
   ' > local.ini
   
   # Kick off database with configuration
   FROM couchdb:2.2.0
   COPY --from=config-builder /exports/couchdb.pem /etc/couchdb/cert/couchdb.pem
   COPY --from=config-builder /exports/privkey.pem /etc/couchdb/cert/privkey.pem
   COPY --from=config-builder /exports/local.ini /opt/couchdb/etc/local.ini 
   ENV COUCHDB_USER admin
   ENV COUCHDB_PASSWORD password
   EXPOSE 5984 5986 6984
   ````

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to