nginx: [emerg] SSL_CTX_use_PrivateKey("/usr/local/amh-7.1/etc/ssl/amh.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
nginx: configuration file /usr/local/nginx-generic-1.24/conf/nginx.conf test failed
重新安装amh面板和重装系统也不行
你的SSL证书和私钥不匹配。
使用命令
openssl x509 -in your_certificate.crt -noout -modulus
查看证书的模数。使用命令
openssl rsa -in your_private.key -noout -modulus
查看私钥的模数。确保两个模数相同,然后重新加载Nginx配置