Getting ERR_CERT_AUTHORITY_INVALID with https

When I connect with http :confused: / mydomain ssl is working. My connection automaticly turns https : / /mydomain
But when I try to connect https :confused: /mydomain I’m getting ERR_CERT_AUTHORITY_INVALID error.

My ssl setting is full and always use ssl is enanbled.

here is my nginx conf:

server {
    listen 80;
    server_name etkinfarma.net www.etkinfarma.net;
    return 301 https://etkinfarma.net$request_uri;

}

server {

listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl        on;
ssl_certificate         /etc/ssl/certs/etkinfarma_cert.pem;
ssl_certificate_key     /etc/ssl/private/etkinfarma_key.pem;

server_name etkinfarma.net www.etkinfarma.net;

location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
    root /var/www/etkinfarma/etkinfarma;
    expires 365d;
}


location / {
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_redirect off;
    proxy_pass http://unix:/var/www/etkinfarma/etkinfarma/etkinfarma.sock;
    proxy_set_header   Connection keep-alive;

    proxy_read_timeout 99999s;
    proxy_connect_timeout 99999s;
}


    gzip on;
        gzip_vary on;
        gzip_proxied any;
        gzip_comp_level 6;
        gzip_buffers 16 8k;
        gzip_http_version 1.1;
        gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
}

How can I solve this

That domain is not using Cloudflare DNS or Cloudflare’s proxy services.

This topic was automatically closed after 30 days. New replies are no longer allowed.