kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

ssl 证书检查

企业微信https有时正常有时不正常, 但http都正常,检查一下证书配置

https://www.geocerts.com/ssl-checker

https://cloud.tencent.com/document/product/400/35243

apache 证书配置

编辑 /etc/httpd/conf.d 目录下的 ssl.conf 配置文件。修改如下内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
<VirtualHost 0.0.0.0:443>
	DocumentRoot "/var/www/html" 
	#填写证书名称
	ServerName cloud.tencent.com 
	#启用 SSL 功能
	SSLEngine on 
	#证书文件的路径
	SSLCertificateFile /etc/httpd/ssl/cloud.tencent.com.crt 
	#私钥文件的路径
	SSLCertificateKeyFile /etc/httpd/ssl/cloud.tencent.com.key 
	#证书链文件的路径
	SSLCertificateChainFile /etc/httpd/ssl/root_bundle.crt 
</VirtualHost>