一、CentOS安装mkcert
mkcert项目地址
//安装certutil sudo yum install nss-tools //安装mkcert,去掉下面语句网址中的“-”✨ wget -O mkcert https://github-.-c-o-m/FiloSottile/mkcert/releases/download/v1.3.0/mkcert-v1.3.0-linux-amd64 //使文件可执行并将二进制文件放在/usr/loa/bin下 chmod +x mkcert sudo mv mkcert /usr/local/bin
二、生成证书
首先在系统信任库中安装本地CA
mkcert -install Using the local CA at "/root/.local/share/mkcert" ✨ The local CA is now installed in the Firefox and/or Chrome/Chromium trust store (requires browser restart)!