TimWolla / docker-adminer

Database management in a single PHP file
https://hub.docker.com/_/adminer/
157 stars 69 forks source link

Invalid request (Unsupported SSL request) #105

Closed SunSDSE closed 3 years ago

SunSDSE commented 3 years ago

I have a little MariaDB & Adminer running on a Raspberry Pi Swarm. The service has been operating great, until this morning when I have been unable to make connection to the service.

Starting and restarting as well as recreating the service is not changing the behavior. All requests are reporting "Invalid request (Unsupported SSL request)" in the adminer service logs.

Every connection in the log is reporting the following:

MariaDB_adminer.1.igdvfhe5hll9@RPi43 | [Thu Jul 29 18:41:36 2021] [::ffff:10.0.0.17]:58750 Accepted MariaDB_adminer.1.igdvfhe5hll9@RPi43 | [Thu Jul 29 18:41:36 2021] [::ffff:10.0.0.17]:58750 Invalid request (Unsupported SSL request) MariaDB_adminer.1.igdvfhe5hll9@RPi43 | [Thu Jul 29 18:41:36 2021] [::ffff:10.0.0.17]:58750 Closing

The MariaDB and Adminer docker services is created using the following docker-compose.yml: ` version: '3.7' services: mariadb: image: mariadb:latest environment: MARIADB_USER: "MySqlUser" MARIADB_PASSWORD: "MySecurePasswd" MARIADB_ROOT_PASSWORD: "MySecurePasswd" MARIADB_DATABASE: "HomeDB" TZ: "PDT8PST" logging: driver: syslog options: tag: "{{.DaemonName}}(image={{.ImageName}};name={{.Name}};id={{.ID}})" networks:

TimWolla commented 3 years ago

I've not seen this error message before, but could it be that your web browser sends direct encrypted HTTPS requests to Adminer? For example because of the recent features to upgrade all connections to TLS encrypted connections?

SunSDSE commented 3 years ago

The obvious... My Safari browser shifted to https with out my noticing

SunSDSE commented 3 years ago

Is there any documentation on how to integrate LetsEncrypt Certs with Adminer?

TimWolla commented 3 years ago

Is there any documentation on how to integrate LetsEncrypt Certs with Adminer?

The image itself does not support TLS. Use a reverse proxy or FastCGI gateway of your choice (e.g. nginx) to proxy the requests to Adminer. These usually support TLS one way or another.

SunSDSE commented 3 years ago

Thanks, That I have running with nginx, Thank you for the help!