toggle menu

I have uploaded my android application webservice on digitalocean Nginx (LEMP) server and getting issues with some mobile device (mostly on Samsung Mobile), Request URL (like https://adc.com/sever_file.php) is JSON response is comes blank with below ERROR.

E/SMD: DCD OFF

E/Volley: [4828] BasicNetwork.performRequest: Unexpected response code 400

Any one have idea about the issues, please suggest.

  • 0 like
  • 0 comment

SSL installed successfully but getting issues

Dhananjay Kumar |30 Mar at 04:03

I have installed SSL on Nginx server on DigitalOcean and seems in a browser secure connection activated.

But when i check my SSL with SSL checker getting below issues:

"The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate."

Anyone can suggest about this.

  • 1 like
  • 0 comment

Issues with SSL integration on DigitalOcean Server

Dhananjay Kumar |27 Mar at 01:03

I have purchased ssl from ipower and getting certificate and prive key, but as per the suggestion we have changed in /etc/nginx/site-enable in defualt page the below things :

server {

    listen 80;
    listen [::]:80;
      
    listen 443 ssl;
    listen [::]:443;
   
    root /var/www/abc.com;

    index index.php index.html index.htm index.nginx-debian.html;

    server_name abc.com www.abc.com;
   
    ssl_certificate /etc/nginx/ssl/abc.com.crt;
    ssl_certificate_key /etc/nginx/ssl/abc.com.key;
   

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location = /favicon.ico { log_not_found off; access_log off; }
    location = /robots.txt { log_not_found off; access_log off; allow all; }
    location ~*  \.(jpg|jpeg|png|gif|ico|css|js)$ {
        expires 365d;
    }
   
    location ~*  \.(pdf)$ {
        expires 30d;
    }
   
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }
    location ~ /\.ht {
        deny all;
    }   

}

 

Please any one hepl with the steps for setup ssl on digital ocean.

  • 1 like
  • 2 comments

Rajesh Kumar28 Mar at 04:03

I have reviewed your server configer script, it seems it configured very well. there may be issue with the .crt and .key files of content format.
i have getting the same issues with ssl integration on digital ocean sever in nginx.

i was just added new line in below format:

------BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----

i was getting such issues with the simply copy and paste certificate and key inside the files. After formatting like above then its work.

Please once try

Dhananjay Kumar28 Mar at 06:03

Thanks for the suggestion, we have done the same way and it's working.
Really thanks for your support..

i have getting issues with ssl integration on digitalocen server, any one can suggest.

when sudo nginx -t run run :


SSL: error:0906D06c:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE
PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE on digital ocean nginx
Nginx [emerg] PEM_read_bio_X509_AUX("/etc/nginx/ssl/adb.com.crt")

  • 1 like
  • 2 comments

Dhananjay Kumar28 Mar at 08:03

We have already tried with :
ssl on;
ssl_certificate /etc/nginx/ssl/abc.com.crt;
ssl_certificate_key /etc/nginx/ssl/abc.com.key;
ssl_dhparam /etc/nginx/ssl/abc.pem;

Dhananjay Kumar28 Mar at 06:03

yes i was just try with formate in certificate and private key files and its working
Like below :
------BEGIN CERTIFICATE-----
SFSDFSDFSDFSDFSDFSD SDXXXXX
XXXXXXXXSDFSDFSDXXXXXXXXXXX
SA21DDASDSA323CDSSADASDASS
GFHFGHF23423SDFSDFSDF1234SD
KTUY23DSFSDFDSFDSFSDFSDFSDA
1SDFSDFSDF DSF SDFS DFDSDSFSD
5SDFSDFSDFSDFSDFS
-----END CERTIFICATE-----