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

September 19, 2022

Using FTP usernames with @ – symbol in midnight commander, virtual username

Filed under: Linux — Tags: , , , , — admin @ 5:47 pm

Mc, is a file manager for linux. But if you want to use a virtual ftp account you will have a problem

The format is  [username[:password]@]hostname  . However if you have a username with @ into it that is the problem.

The solution is to replace the @ with +

So if you have test@test.com then you will input test+test.com@hostname.com

August 5, 2015

Make apt-get use IPv4 instead of IPv6

Filed under: Linux — Tags: , , , — admin @ 2:15 pm

I have try today to run some apt-get update and it take some time to figure the ipv6 ip . So I wanted to not use ipv6.
The fix is to un comment the line 54 from this file
/etc/gai.conf
precedence ::ffff:0:0/96 100

after this all run smooth.

December 16, 2014

Setting up HAProxy with SSL

Filed under: Linux — Tags: , , , , — admin @ 2:02 pm

Well today I was set up a haproxy to use ssl, and did’t figure out from first time how to get only one file for the pem.
In haproxy you have only one file with all certificates.

So the order is this:
cat matrafox.info.key >> matrafox.info.pem
cat matrafox.info.crt >> matrafox.info.pem
cat intermediate.bundle >> matrafox.info.pem

After this just add the
bind *:443 ssl crt /etc/ssl/matrafox.info.pem
And you will have the right one.

January 29, 2014

How to display HTTP Headers with tcpdump

Filed under: Linux — Tags: , , , , — admin @ 9:19 pm

Well today I was needing to see some packages that arrived on apache. In order to see I have to use tcpdump, but you will only some short information if you are using basic.
In order to see HTTP header you have to use something like this:
tcpdump -n -vvvs 1024 -l -A host matrafox.info

If you want to see more information you have to increase the size, something like this
tcpdump -n -vvvs 1500-l -A host matrafox.info

Powered by WordPress