- Plesk for Linux
The following error is shown while trying to perform curl request to any https service:
# curl -I -v https://api.example.com
* About to connect() to api.example.com port 443 (#0)
* Trying fe20:2880:f012:1:face:b00c:0:1...
* Connected to api.example.com (fe20:2880:f012:1:face:b00c:0:1) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* Unable to initialize NSS database
* Initializing NSS with certpath: none
* Unable to initialize NSS
* Closing connection 0
curl: (77) Problem with the SSL CA cert (path? access rights?)
The user has chrooted shell.
Missing SSL libraries in chrooted environment.
Copy the following libraries to your domain's chrooted environment:
# cp /lib64/libsoftokn3.so /var/www/vhosts/example.com/usr/lib64/
# cp /usr/lib64/libsqlite3.so.0 /var/www/vhosts/example.com/usr/lib64/
# cp /usr/lib64/libsqlite3.so.0.8.6 /var/www/vhosts/example.com/usr/lib64/
# cp /usr/lib64/libfreeblpriv3.so /var/www/vhosts/example.com/usr/lib64/
If the issue persists, copy strace utility to chrooted user and find what libraries are missing in an environment:
# cp /usr/bin/strace /var/www/vhosts/example.com/usr/bin/
# su chrooted_user
# strace curl -I -v https://api.example.com