SSL + EasyEngine + PHP fopen error

Curious how to resolve this error. I am trying everything to debug and I’m running out of ideas.

In a fresh Debian 8 64-bit I installed EasyEngine with this option

ee site create mysite.com --wpfc  

Everything works like a charm. I bought a SSL and followed the directions on how to configure nginx to pick it up but now receive this after running “nginx -t”

[email protected]:/etc/ee# nginx -t
nginx: [emerg] BIO_new_file("/var/www/mysite.com/cert/www_mysite.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/var/www/mysite.com/cert/www_mysite.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

My setup.

root@mysite:/var/www/mysite.com/cert# ls -l
total 20
-r--r--r-- 1 root www-data 1648 May 30 17:33 DigiCertCA.crt
-r--r--r-- 1 root www-data 1847 May 30 16:34 www_mysite_com.crt
-rw------- 1 root www-data 1017 May 30 14:49 www_mysite_com.csr
-r--r----- 1 root www-data 1708 May 30 14:49 www_mysite_com.key
-r--r--r-- 1 root www-data 3494 May 30 17:46 www_mysite_com.pem



root@mysite:/etc/nginx/sites-available# ls -l
total 16
-rw-r--r-- 1 root root 1454 May 30 13:32 22222
-rw-r--r-- 1 root root 2012 May 30 18:24 default
-rw-r--r-- 1 root root 1027 May 30 18:25 mysite.com
root@mysite:/etc/nginx/sites-available# more mysite.com

server {

    listen 80;

    server_name mysite.com   www.mysite.com;

    access_log /var/log/nginx/mysite.com.access.log rt_cache;
    error_log /var/log/nginx/mysite.com.error.log;

    root /var/www/mysite.com/htdocs;

    index index.php index.html index.htm;

    include common/wpfc.conf;
    include common/wpcommon.conf;
    include common/locations.conf;
    include /var/www/mysite.com/conf/nginx/*.conf;
}


server {

    listen 443;
    server_name mysite.com   www.mysite.com;

ssl_certificate /var/www/mysite.com/cert/www_mysite.com.pem;
ssl_certificate_key /var/www/mysite.com/cert/www_mysite.com.key;

    access_log /var/log/nginx/mysite.com.access.log rt_cache;
    error_log /var/log/nginx/mysite.com.error.log;

    root /var/www/mysite.com/htdocs;

    index index.php index.html index.htm;

    include common/wpfc.conf;
    include common/wpcommon.conf;
    include common/locations.conf;
    include /var/www/mysite.com/conf/nginx/*.conf;
}

As you can see, I hardly changed anything after EasyEngine did it’s intial time-saving magic.

Thanks for any insights. I am still debugging this.

EDIT

I resolved this. I can’t believe I mispelled the name in the configuration file.