Notes on common problems

Shell curl error: (60) SSL certificate problem: self signed certificate

Add -k to curl, or --no-check-certificate to wget.

curl -v -k https://amm907.com
wget --no-check-certificate https://amm907.com

Shell curl error: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol

OPENSSL_CONF=./openssl_allow_tls1.0.cnf curl -v https://amm907.com

vi openssl_allow_tls1.0.cnf
openssl_conf = openssl_init

[openssl_init]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
CipherString = DEFAULT@SECLEVEL=1

Kali in VMware randomly loses networking, with "device not managed" shown at the top right

ifconfig -a shows that the network card is still there. It's just gone on strike.

Add these two lines to the configuration, then restart networking.

vi /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
# 重启
systemctl restart networking