yum(在 centos 主机上)如何与需要 ssl 证书的代理一起工作
How would yum ( on centos host ) work with proxy that requires an ssl cert
我正在尝试使用 https 和 ssl 证书在 /etc/yum.conf 中设置代理
通常,如果代理地址是代理地址,我会使用 proxy=http://x.x.x.x:80,因为我的代理不需要用户名和密码,所以可以。但现在我有一个要求,设置 /etc/yum/conf
代理=https://x.x.x.x:433
而托管 centos 的 yum 只能通过接受基于 ssl 证书的身份验证的代理与互联网通信。
那么我将如何在 centos 主机上安装 ssl 证书,以便 yum 与端口 443 上的代理主机以及需要 SSL 证书的代理主机一起工作
看起来您应该能够使用从 yum.conf manual page.
中获取的以下配置指令
sslclientcert
Path to the SSL client certificate yum should use to connect to
repos/remote sites Defaults to none. Note that if you are using curl
compiled against NSS (default in Fedora/RHEL), curl treats
sslclientcert values with the same basename as identical. This
version of yum will check that this isn't true and output an error
when the repositories "foo" and "bar" violate this, like so:
sslclientcert basename shared between foo and bar
sslclientkey
Path to the SSL client key yum should use to connect to repos/remote
sites Defaults to none.
我正在尝试使用 https 和 ssl 证书在 /etc/yum.conf 中设置代理 通常,如果代理地址是代理地址,我会使用 proxy=http://x.x.x.x:80,因为我的代理不需要用户名和密码,所以可以。但现在我有一个要求,设置 /etc/yum/conf 代理=https://x.x.x.x:433 而托管 centos 的 yum 只能通过接受基于 ssl 证书的身份验证的代理与互联网通信。 那么我将如何在 centos 主机上安装 ssl 证书,以便 yum 与端口 443 上的代理主机以及需要 SSL 证书的代理主机一起工作
看起来您应该能够使用从 yum.conf manual page.
中获取的以下配置指令sslclientcert
Path to the SSL client certificate yum should use to connect to repos/remote sites Defaults to none. Note that if you are using curl compiled against NSS (default in Fedora/RHEL), curl treats sslclientcert values with the same basename as identical. This version of yum will check that this isn't true and output an error when the repositories "foo" and "bar" violate this, like so: sslclientcert basename shared between foo and bar
sslclientkey
Path to the SSL client key yum should use to connect to repos/remote sites Defaults to none.