我在我的机器上执行了以下配置
当我尝试使用knife命令从我的工作站上传食谱时,以下是错误,
PS C:\Users\e-abhayag\chef-starter\chef-repo\cookbooks> knife cookbook upload workstation
Uploading workstation [0.2.0]
ERROR: SSL Validation failure connecting to host: evalcheflin01 - hostname "evalcheflin01" does not match the server cer
tificate
ERROR: SSL Error connecting to https://evalcheflin01/bookshelf/organization-81ebc4e1ee82fe97c314c2a66304fede/checksum-44
cf8d56cdec7fd795e8c59c11c213e6?AWSAccessKeyId=5f9d83d3b14308ceac7c43df85ac0b43e2cf1cdf&Expires=1472629367&Signature=8FzL
LiBNfTp09TPeQvqtA0TSyzc%3D, retry 1/5
虽然我已获取ssl证书并已检查
PS C:\Users\e-abhayag\chef-starter\chef-repo> knife ssl check
Connecting to host EVALCHEFLIN01:443
Successfully verified certificates from `EVALCHEFLIN01'
答案 0 :(得分:0)
错误在您引用的内容中可见:
evalcheflin01 - hostname "evalcheflin01" does not match the server certificate
这与证书是否可信无关,证书必须与请求的主机名匹配,然后才能被信任。您可以使用openssl s_client -connect evalcheflin01:443 -debug
查看服务器正在呈现CN。如果您使用的是内部生成的自签名证书,则这将是服务器的FQDN,而不是基本主机名。