So I’m not sure where to start with this but our secops team said it detected tls 1.1 over port 443 on this server. Checking with the dev who installed Docker and set up the container, he has no idea how to disable that other than telling me here’s the config for the container. I’ve been researching how to do TLS settings for Docker but they all seem to be going to settings on the OS rather than inside the container. I’m not sure where to even start with this as I’m not a Docker expert by any stretch.<\/p>\n
Here’s the config json he gave me for this container. Any help/guidance is appreciated.<\/p>\n
{ So I’m not sure where to start with this but our secops team said it detected tls 1.1 over port 443 on this server. Checking with the dev who installed Docker and set up the container, he has no idea how to disable that other than telling me here’s the config for the container. I’ve been researching how to do TLS settings for Docker but they all seem to be going to settings on the OS rather than inside the container. I’m not sure where to even start with this as I’m not a Docker expert by any stretch.<\/p>\n Here’s the config json he gave me for this container. Any help/guidance is appreciated.<\/p>\n { I would disable TLS 1.0 / 1.1 and enable TLS 1.3 , you can achive that by the method below:<\/p>\n Might neededit at least two different configuration files:<\/p>\n Just in case if you use something like certbot or let’s encrypt, you may need to edit :<\/p>\n So Now let’s get to the editing part !!! i prefer using nano as editor , you can use vim or other editor which you are comfortable with:<\/p>\n find for the following line within a http { } block. This line may (or may not) be commented after a hash as follows:<\/p>\n So u just need to remove TLSv1 TLSv1.1 and add TLSv1.3 - the line now should look like this:<\/p>\n Just save the file and check if the nginx config is valid by :<\/p>\n If all is good then just reload the nginx by:<\/p>\n Hope it helps !!!<\/p>","upvoteCount":0,"datePublished":"2022-11-17T16:09:32.000Z","url":"https://community.spiceworks.com/t/disable-tls-1-1-settings-for-docker-nginx-container/940655/2","author":{"@type":"Person","name":"akbarali8562","url":"https://community.spiceworks.com/u/akbarali8562"}},{"@type":"Answer","text":" Thing is there’s no nginx running locally on the server. It may be installed but it’s not actually running. It’s in Docker. I can edit the local nginx.conf but if it’s not started as a service on the OS itself, would those changes still affect what’s running in the container? Attached screenshot shows:<\/p>\n systemctl status nginx - OS can’t find it<\/p>\n /etc/nginx/conf/nginx.conf - this file does exist, so nginx is installe but not enabled<\/p>\n systemctl list-unit-files | grep nginx - no output, so not installed as service<\/p>\n docker ps - last container is the one with nginx<\/p>\n
\n“StreamConfig”: {},
\n“State”: {
\n“Running”: true,
\n“Paused”: false,
\n“Restarting”: false,
\n“OOMKilled”: false,
\n“RemovalInProgress”: false,
\n“Dead”: false,
\n“Pid”: 2192,
\n“ExitCode”: 0,
\n“Error”: “”,
\n“StartedAt”: “2022-10-23T02:20:55.233142989Z”,
\n“FinishedAt”: “2022-10-22T22:20:53.016410944-04:00”,
\n“Health”: null
\n},
\n“ID”: “69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83”,
\n“Created”: “2022-02-15T15:30:12.558139307Z”,
\n“Managed”: false,
\n“Path”: “/docker-entrypoint.sh”,
\n“Args”: [
\n“nginx”,
\n“-g”,
\n“daemon off;”
\n],
\n“Config”: {
\n“Hostname”: “69c87ced8527”,
\n“Domainname”: “”,
\n“User”: “”,
\n“AttachStdin”: false,
\n“AttachStdout”: false,
\n“AttachStderr”: false,
\n“ExposedPorts”: {
\n“443/tcp”: {},
\n“80/tcp”: {}
\n},
\n“Tty”: false,
\n“OpenStdin”: false,
\n“StdinOnce”: false,
\n“Env”: [
\n“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
\n“NGINX_VERSION=1.19.5”,
\n“NJS_VERSION=0.4.4”,
\n“PKG_RELEASE=1”,
\n“SSL_CERT=/etc/secrets/certificate.crt”,
\n“SSL_KEY=/etc/secrets/certificate.key”
\n],
\n“Cmd”: [
\n“nginx”,
\n“-g”,
\n“daemon off;”
\n],
\n“Image”: “nginx_image”,
\n“Volumes”: null,
\n“WorkingDir”: “”,
\n“Entrypoint”: [
\n“/docker-entrypoint.sh”
\n],
\n“OnBuild”: null,
\n“Labels”: {
\n“maintainer”: “NGINX Docker Maintainers [email protected]<\/a>”
\n},
\n“StopSignal”: “SIGTERM”
\n},
\n“Image”: “sha256:a0028c293cbca9cedc75385f619c134908b3a04ff844093de231b9f2fa5a9cce”,
\n“NetworkSettings”: {
\n“Bridge”: “”,
\n“SandboxID”: “1fe06055cf79d44bb8b63bae5be60e7f2c8dc1c4d688001c4e480878cf72df28”,
\n“HairpinMode”: false,
\n“LinkLocalIPv6Address”: “”,
\n“LinkLocalIPv6PrefixLen”: 0,
\n“Networks”: {
\n“jupyterhub-network”: {
\n“IPAMConfig”: {},
\n“Links”: null,
\n“Aliases”: [
\n“69c87ced8527”
\n],
\n“NetworkID”: “8edb3118e12c7caf0c9de03418e4b5d5f6d0fafbb4634cf8051c1d410b3b9102”,
\n“EndpointID”: “bda8cbffdb827d9f3b4d780de8181fa1e8dac13575daebf3359d75163948b9d9”,
\n“Gateway”: “172.18.0.1”,
\n“IPAddress”: “172.18.0.2”,
\n“IPPrefixLen”: 16,
\n“IPv6Gateway”: “”,
\n“GlobalIPv6Address”: “”,
\n“GlobalIPv6PrefixLen”: 0,
\n“MacAddress”: “02:42:ac:12:00:02”,
\n“DriverOpts”: {},
\n“IPAMOperational”: false
\n}
\n},
\n“Service”: null,
\n“Ports”: {
\n“443/tcp”: [
\n{
\n“HostIp”: “0.0.0.0”,
\n“HostPort”: “443”
\n}
\n],
\n“80/tcp”: null
\n},
\n“SandboxKey”: “/var/run/docker/netns/1fe06055cf79”,
\n“SecondaryIPAddresses”: null,
\n“SecondaryIPv6Addresses”: null,
\n“IsAnonymousEndpoint”: false,
\n“HasSwarmEndpoint”: false
\n},
\n“LogPath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83-json.log”,
\n“Name”: “/nginx_jupyter”,
\n“Driver”: “devicemapper”,
\n“OS”: “linux”,
\n“MountLabel”: “”,
\n“ProcessLabel”: “”,
\n“RestartCount”: 0,
\n“HasBeenStartedBefore”: true,
\n“HasBeenManuallyStopped”: false,
\n“MountPoints”: {},
\n“SecretReferences”: null,
\n“ConfigReferences”: null,
\n“AppArmorProfile”: “”,
\n“HostnamePath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/hostname”,
\n“HostsPath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/hosts”,
\n“ShmPath”: “”,
\n“ResolvConfPath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/resolv.conf”,
\n“SeccompProfile”: “”,
\n“NoNewPrivileges”: true,
\n“LocalLogCacheMeta”: {
\n“HaveNotifyEnabled”: false
\n}
\n}<\/p>","upvoteCount":6,"answerCount":7,"datePublished":"2022-11-17T15:28:43.000Z","author":{"@type":"Person","name":"matthewramirez3","url":"https://community.spiceworks.com/u/matthewramirez3"},"suggestedAnswer":[{"@type":"Answer","text":"
\n“StreamConfig”: {},
\n“State”: {
\n“Running”: true,
\n“Paused”: false,
\n“Restarting”: false,
\n“OOMKilled”: false,
\n“RemovalInProgress”: false,
\n“Dead”: false,
\n“Pid”: 2192,
\n“ExitCode”: 0,
\n“Error”: “”,
\n“StartedAt”: “2022-10-23T02:20:55.233142989Z”,
\n“FinishedAt”: “2022-10-22T22:20:53.016410944-04:00”,
\n“Health”: null
\n},
\n“ID”: “69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83”,
\n“Created”: “2022-02-15T15:30:12.558139307Z”,
\n“Managed”: false,
\n“Path”: “/docker-entrypoint.sh”,
\n“Args”: [
\n“nginx”,
\n“-g”,
\n“daemon off;”
\n],
\n“Config”: {
\n“Hostname”: “69c87ced8527”,
\n“Domainname”: “”,
\n“User”: “”,
\n“AttachStdin”: false,
\n“AttachStdout”: false,
\n“AttachStderr”: false,
\n“ExposedPorts”: {
\n“443/tcp”: {},
\n“80/tcp”: {}
\n},
\n“Tty”: false,
\n“OpenStdin”: false,
\n“StdinOnce”: false,
\n“Env”: [
\n“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
\n“NGINX_VERSION=1.19.5”,
\n“NJS_VERSION=0.4.4”,
\n“PKG_RELEASE=1”,
\n“SSL_CERT=/etc/secrets/certificate.crt”,
\n“SSL_KEY=/etc/secrets/certificate.key”
\n],
\n“Cmd”: [
\n“nginx”,
\n“-g”,
\n“daemon off;”
\n],
\n“Image”: “nginx_image”,
\n“Volumes”: null,
\n“WorkingDir”: “”,
\n“Entrypoint”: [
\n“/docker-entrypoint.sh”
\n],
\n“OnBuild”: null,
\n“Labels”: {
\n“maintainer”: “NGINX Docker Maintainers [email protected]<\/a>”
\n},
\n“StopSignal”: “SIGTERM”
\n},
\n“Image”: “sha256:a0028c293cbca9cedc75385f619c134908b3a04ff844093de231b9f2fa5a9cce”,
\n“NetworkSettings”: {
\n“Bridge”: “”,
\n“SandboxID”: “1fe06055cf79d44bb8b63bae5be60e7f2c8dc1c4d688001c4e480878cf72df28”,
\n“HairpinMode”: false,
\n“LinkLocalIPv6Address”: “”,
\n“LinkLocalIPv6PrefixLen”: 0,
\n“Networks”: {
\n“jupyterhub-network”: {
\n“IPAMConfig”: {},
\n“Links”: null,
\n“Aliases”: [
\n“69c87ced8527”
\n],
\n“NetworkID”: “8edb3118e12c7caf0c9de03418e4b5d5f6d0fafbb4634cf8051c1d410b3b9102”,
\n“EndpointID”: “bda8cbffdb827d9f3b4d780de8181fa1e8dac13575daebf3359d75163948b9d9”,
\n“Gateway”: “172.18.0.1”,
\n“IPAddress”: “172.18.0.2”,
\n“IPPrefixLen”: 16,
\n“IPv6Gateway”: “”,
\n“GlobalIPv6Address”: “”,
\n“GlobalIPv6PrefixLen”: 0,
\n“MacAddress”: “02:42:ac:12:00:02”,
\n“DriverOpts”: {},
\n“IPAMOperational”: false
\n}
\n},
\n“Service”: null,
\n“Ports”: {
\n“443/tcp”: [
\n{
\n“HostIp”: “0.0.0.0”,
\n“HostPort”: “443”
\n}
\n],
\n“80/tcp”: null
\n},
\n“SandboxKey”: “/var/run/docker/netns/1fe06055cf79”,
\n“SecondaryIPAddresses”: null,
\n“SecondaryIPv6Addresses”: null,
\n“IsAnonymousEndpoint”: false,
\n“HasSwarmEndpoint”: false
\n},
\n“LogPath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83-json.log”,
\n“Name”: “/nginx_jupyter”,
\n“Driver”: “devicemapper”,
\n“OS”: “linux”,
\n“MountLabel”: “”,
\n“ProcessLabel”: “”,
\n“RestartCount”: 0,
\n“HasBeenStartedBefore”: true,
\n“HasBeenManuallyStopped”: false,
\n“MountPoints”: {},
\n“SecretReferences”: null,
\n“ConfigReferences”: null,
\n“AppArmorProfile”: “”,
\n“HostnamePath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/hostname”,
\n“HostsPath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/hosts”,
\n“ShmPath”: “”,
\n“ResolvConfPath”: “/var/lib/docker/containers/69c87ced8527a742063bf1f8ffbffd503aead1ba3c3b76c066015f73c9c8aa83/resolv.conf”,
\n“SeccompProfile”: “”,
\n“NoNewPrivileges”: true,
\n“LocalLogCacheMeta”: {
\n“HaveNotifyEnabled”: false
\n}
\n}<\/p>","upvoteCount":6,"datePublished":"2022-11-17T15:28:43.000Z","url":"https://community.spiceworks.com/t/disable-tls-1-1-settings-for-docker-nginx-container/940655/1","author":{"@type":"Person","name":"matthewramirez3","url":"https://community.spiceworks.com/u/matthewramirez3"}},{"@type":"Answer","text":"/etc/nginx/nginx.conf\n/etc/nginx/sites-available/example.com (or /default)\n<\/code><\/pre>\n
/etc/letsencrypt/options-ssl-nginx.conf\n<\/code><\/pre>\n
\nAlways do a backup as best practice (you never know when it may help)<\/p>\nsudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.backup-tls\n<\/code><\/pre>\n
sudo nano /etc/nginx/nginx.conf\n<\/code><\/pre>\n
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3 \n<\/code><\/pre>\n
ssl_protocols TLSv1.2 TLSv1.3;\n<\/code><\/pre>\n
nginx -t\n<\/code><\/pre>\n
sudo service nginx reload\n<\/code><\/pre>\n