How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

September 22, 2022

curl: (60) SSL certificate problem: certificate has expired

Filed under: Linux — Tags: , , , — admin @ 11:30 am

I have this problem on a debian 9 client, that try to run a curl to a website that have valid SSL .

The fix is to blacklist the expired ssl on the client computer, not on server.

sed -i ‘s|mozilla/DST_Root_CA_X3.crt|!mozilla/DST_Root_CA_X3.crt|’ /etc/ca-certificates.conf && update-ca-certificates

August 19, 2019

Docker COPY failed: stat

Filed under: Linux — Tags: , — admin @ 12:30 pm

Today I am trying to use docker and saw this problem

COPY failed: stat /var/lib/docker/tmp/docker-builder749895154/docker-directory/apache/project.conf: no such file or directory

The fix for this problem is to check your .gitignore file , and add a exception for that directory

!docker-directory/

February 12, 2019

Docker Command-line completion

Filed under: Linux — Tags: , — admin @ 1:51 pm

Today installed centos7 and then docker . Wanted to run something but docker TAB didn’t work to autocomplete.

The solution is to install the bash-completion

yum -y install bash-completion

Powered by WordPress