Cannot connect to Jetpack ( SIte Inaccessible )

May 30, 2016 567 views
Nginx Linux Commands Linux Basics WordPress

Hey Guys,
My name is Frans W.
I am a newbie here.

I have issued after i followed the tutorial.
Finally, i have reached the wordpress now.
But while i want to install Jetpack, there are any issue blocked me.
I can install it, but when i want to connect it, the top is showing error message:

Your website needs to be publicly accessible to use Jetpack: site_inaccessible

Error Details: The Jetpack server was unable to communicate with your site [IXR -32300: transport error: httprequestfailed SSL certificate problem: unable to get local issuer certificate]

My Following Block is like that,

server {
listen 443 defaultserver;
listen [::]:443 default
server ipv6only=on;

    root /var/www/web/html;
    index index.php index.html index.htm;


ssl on;
ssl_certificate /var/www/web/cert/;
ssl_certificate_key /var/www/web/cert/;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

    location / {
            # try_files $uri $uri/ =404;
            try_files $uri $uri/ /index.php?q=$uri&$args;

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
            root /usr/share/nginx/html;

    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            include fastcgi_params;


server {
listen 80;
listen [::]:80;
return 301 https://$server

Am i missing something?
Any advice for that?
Need your help.

Thank you,
Frans W

2 Answers

The error you are seeing is returned when Curl (the process being used by php to connect) is unable to verify the certificate for your SSL site. Jetpack will not be able to connect back to your WordPress instance if it is not able to verify your certificate. After some searching, this post may have a workaround. You can also look into setting up a proper verifiable SSL certificate for free from LetsEncrypt to resolve this.

This tutorial will show you how to set up a free TLS/SSL certificate from Let’s Encrypt on a Ubuntu 14.04 server running Apache as web server. SSL certificates are used within web servers to encrypt the traffic between server and client, providing extra security for users accessing your application.

Hello frans, tbh i am not going into deep with this but when this error happens with my blog I searched a lot on internet. I finally found a solution that any change to .htacess file will leads to site_inaccessible. However the easy way to solve is to disable any security related plugin or restricting any module to make change in it.
In short checout this blog post to solve site_inaccessible jetpack issue.

Have another answer? Share your knowledge.