1
openssl s_client -connect {host}:{port} -showcerts > cert.pem
其中,host为域名;port为端口号,默认为443;cert.pem为保存的证书名字。例如:
openssl s_client -connect s3-kp-szv-gen.hics.huawei.com:443 -showcerts > cert.pem
cat cert.pem >> /etc/pki/tls/certs/ca-bundle.crt