B
B
Bogdan2019-02-12 14:33:43
Android
Bogdan, 2019-02-12 14:33:43

Error accessing the server?

Tell me please. On Android 4.4.2 (in the background, the server is polled every 2 seconds), an error periodically pops up:

SSL handshake aborted: ssl = 0x592e87d8:
Failure in SSL library, usually a protocol error
error: 14077410: SSL routines: SSL23_GET_SERVER_HELLO: 
sslv3 alert handshake failure (external / openssl / ssl / s23_clnt.c: 
741 0x54eafd74: 0x00000000)

Node.js is running on the server, which is proxied through nginx port 8090 and everything is wrapped in a docker container:
nginx.conf
# disable when not https
ssl_certificate /etc/letsencrypt/live/some-site.cf/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/some-site.cf/privkey.pem;

server {
  listen 80;
  listen [::]:80; #Added IPv6 here too
  server_name $host;
  server_tokens off;

  location /.well-known/acme-challenge/ {
    root /var/www/certbot;
  }

  location / {
    return 301 https://$host$request_uri;
  }
}

server {
  # remove "ssl" when not https
  listen 8090 ssl;
  listen [::]:8090 ssl;

  server_name $host;
  server_tokens off;

  proxy_ssl_server_name on;
  proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

  location / {
    proxy_pass http://app:8080;
  }
}

server {
  # remove "ssl" when not https
  listen 443 ssl;
  listen [::]:443 ssl;

  root /var/www/site;

  # for SPA
  location / {
    try_files $uri $uri/ /index.html;
  }
}

Googled the solution
proxy_ssl_server_name on;
  proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

But it didn’t help, can you tell me which way to dig in the Android application, you need to fix something or nginx, thanks?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question