I have got my EV SSL Certificate. I am following tutorials on how to use my certificate with NGINX on Ubuntu
When I am trying to restart my nginx, I get:
**invalid number of arguments in "ssl_certificate_key" directive in /etc/nginx/sites-enabled/default
What I did so far:
sudo nano /etc/nginx/sites-enabled/default upstream app { # Path to Unicorn SOCK file, as defined previously server unix:/home/zhall/zoulfia/shared/sockets/unicorn.sock fail_timeout=0; } server { listen 80; server_name moneytree.space www.moneytree.space " " 178.62.19.65; rewrite ^/(.*) https://moneytree.space/$1 permanent; } # HTTPS server server { listen 443; server_name moneytree.space www.moneytree.space " " 178.62.19.65; root /home/zhall/zoulfia/public; ssl on; ssl_certificate /home/zhall/moneytree.space.chained.crt; **ssl_certificate_key /home/zhall/ moneytree.space.key** ssl_session_timeout 10m; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES"; ssl_prefer_server_ciphers on; location / { try_files $uri $uri/ =404; } }
When i restart nginx with ---
sudo service nginx restart
In my log file ----
sudo nano /var/log/nginx/error.log, I get: **invalid number of arguments in "ssl_certificate_key" directive in /etc/nginx/sites-enabled/default
Everything is new to me so I need your help to solve this. What am I doing wrong and most importantly how to correct this mistake?
Thank you, Zoulfia
It looks like you may be missing a semicolon at the end of the ssl_certificate_key
line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With