http_request_failed - cURL error 60: SSL certificate problem: unable to get local issuer certificate.
finalturismo
nginx-forum at forum.nginx.org
Thu May 21 17:27:30 UTC 2020
So i have a few sites setup on my nginx web server and my ssl has been
working fine.
Problem is iam getting a curl ssl error and iam not sure why?
The error is as follows http_request_failed - cURL error 60: SSL certificate
problem: unable to get local issuer certificate.
I never gotten any ssl errors before, besides this time when i went to
import demo data on a wordpress site?
I need help as i need to get this site up by Friday.
Here is my current nginx ssl configuration file
server {
listen 80;
root /tmp/ewtwtertert;
index index.html index.htm index.nginx-debian.html index.php;
server_name dfwelectronicsrecycling.com www.dfwelectronicsrecycling.com;
location / {
rewrite .* https://www.dfwelectronicsrecycling.com/$1;
}
}
server {
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/dfwelectronicsrecycling.com/dfwelectronicsrecycling.crt;
ssl_certificate_key /etc/nginx/ssl/dfwelectronicsrecycling.com/dfwelectronicsrecycling.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache shared:SSL:10m;
ssl_ciphers 'kEECDH+ECDSA+AES128 kEECDH+ECDSA+AES256 kEECDH+AES128
kEECDH+AES256 kEDH+AES128 kEDH+AES256 DES-CBC3-SHA +SHA !aNULL !eNULL !LOW
!kECDH !DSS !MD5 !EXP !PSK !SRP !CAMELLIA !SEED';
root /var/www/dfwelectronicsrecycling.com/public_html;
index index.html index.htm index.php;
server_name dfwelectronicsrecycling.com www.dfwelectronicsrecycling.com;
location / {
try_files $uri $uri/ /index.php?$args;
}
##### Include , Security and configuration files
# include /etc/nginx/sites-conf/dfwelectronicsrecycling.com/*;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php-fpm.socket;
}
location = /.well-known/pki-validation {
types {}
default_type text/html;
}
}
Here is my nginx configuration file.
user nginx nginx;
worker_processes auto;
pid /run/nginx.pid;
#include /etc/nginx/modules-enabled/*.conf;
# BEGIN W3TC Page Cache cache
# END W3TC Page Cache cache
events {
use epoll;
worker_connections 1024;
multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 15;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
client_max_body_size 120M;
client_body_buffer_size 1M;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
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/javascript
text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
# included custom scripts
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
# error because this is in http {} directive. for redirecting you need in
server {} directive
}
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288085,288085#msg-288085
More information about the nginx
mailing list