BytemarkHosting / docker-webdav

Docker image for running an Apache WebDAV server
MIT License
364 stars 174 forks source link

SSL selfsigned httpd: Syntax error #5

Open davebra opened 5 years ago

davebra commented 5 years ago

There is an error during the creation of the container when using SSL. I'm using docker-compose to start the container, this is my docker-compose.yml file:

version: '3' services: webdav: image: bytemark/webdav ports:

  • "443:443" environment:
  • SSL_CERT=selfsigned volumes:
  • ./dav:/var/lib/dav
  • ./user.passwd:/user.passwd

and this is the docker-compose up log:

webdav_1 | Generating a RSA private key webdav_1 | ............................+++++ webdav_1 | .....................................................................................................+++++ webdav_1 | writing new private key to '/privkey.pem' webdav_1 | ----- webdav_1 | httpd: Syntax error on line 159 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_ssl.so into server: Error relocating /usr/local/apache2/modules/mod_ssl.so: SSL_CTX_set_post_handshake_auth: symbol not found webdav_1 exited with code 1

tsievers33 commented 5 years ago

I'm getting this error too, with signed SSL certs (mountes at /privkey.pem & /cert.pem

tsievers33 commented 5 years ago

I fixed this in a image (cloned from this repo and tagged with httpd:2.4.35-alpine): twizzel/webdav

This works!

XNinety9 commented 5 years ago

I have this error too

davebra commented 5 years ago

Hey @deadbird99 , use the docker image twizzel/webdav or clone my version https://github.com/davebra/docker-webdav that uses the old alpine-apache without this issue

kerphi commented 5 years ago

@pcammish should just rebuild the 2.4 image (or generate a new version). It will fixes this issue.

Kelduum commented 5 years ago

I no longer have access to the repo after leaving Bytemark. You may want to contact Bytemark support directly, as someone may still be there who can sort it out.

kerphi commented 5 years ago

ping @jamielinux @ianeiloart or @boonen ?