ericovk
Verified User
I set up my server with an Letsencrypt SSL certificate. My Chrome browser seems to be totally fine with that. I get an error within Laravel about an SSL issue.
When I try to curl a website that has active SSL (as root user), shell gives me back a message that I seem to be using a self signed certificate.
I tried to disable SSL for the specific account in which I installed Laravel, but that doesn't seem the issue.
I removed all older server SSL files:
After that I ran the Letsencrypt script for the server again:
Getting back proper verification of the SSL
Results of curl doesn't change. Still the same problem "curl: (60) SSL certificate problem: self signed certificate in certificate chain."
When I try to curl a website that has active SSL (as root user), shell gives me back a message that I seem to be using a self signed certificate.
Code:
#curl https://www.google.com
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
I tried to disable SSL for the specific account in which I installed Laravel, but that doesn't seem the issue.
I removed all older server SSL files:
Code:
/usr/local/directadmin/conf/cacert.pem
/usr/local/directadmin/conf/cakey.pem
/usr/local/directadmin/conf/carootcert.pem
After that I ran the Letsencrypt script for the server again:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request server.hostname.com 4096
Getting back proper verification of the SSL
Code:
Setting up certificate for a hostname: server.hostname.com
Getting challenge for server.hostname.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.server.hostname.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for mail.server.hostname.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for ftp.server.hostname.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for pop.server.hostname.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for smtp.server.hostname.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for server.hostname.com...
openssl genrsa 4096 > "/usr/local/directadmin/conf/cakey.pem.new"
Generating RSA private key, 4096 bit long modulus
.....................................++
......................................................................................................................................................................++
e is 65537 (0x10001)
DirectAdmin certificate has been setup.
Setting up cert for Exim...
Setting up cert for WWW server...
Setting up cert for FTP server...
The services will be restarted in about 1 minute via the dataskq.
Certificate for server.hostname.com has been created successfully!
Results of curl doesn't change. Still the same problem "curl: (60) SSL certificate problem: self signed certificate in certificate chain."