Ssl 如何将jfrog Artifactory web界面配置为使用https而不是http
我在jfrog网站上找不到关于如何配置Artifactory以在网站上使用https的简单解释 我想我可能已经在示例system.full-template.yaml中找到了答案,该示例与新版本7.17.11一起在/opt/jfrog/artifactory/var/etc中提供Ssl 如何将jfrog Artifactory web界面配置为使用https而不是http,ssl,https,artifactory,Ssl,Https,Artifactory,我在jfrog网站上找不到关于如何配置Artifactory以在网站上使用https的简单解释 我想我可能已经在示例system.full-template.yaml中找到了答案,该示例与新版本7.17.11一起在/opt/jfrog/artifactory/var/etc中提供 ## Artifactory Tomcat connector customization on the Artifactory port tomcat: ## Set up an HTTPS con
## Artifactory Tomcat connector customization on the Artifactory port
tomcat:
## Set up an HTTPS connector for artifactory. This opens a port
## in addition to the default HTTP connector. All relevant
## properties configured for the HTTP connector are applied also
## for this connector (e.g. "maxThreads")
httpsConnector:
## Enable connector with SSL/TLS
#enabled: false
## Port to use for the HTTPS connector
#port: 8443
## Certificate file to use
#certificateFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/ssl/server.crt"
## Certificate key file to use.
#certificateKeyFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/ssl/server.key"
但是,在修改过的system.yaml中尝试了这一点,并设置了相应的行未注释和值(见下文),将我们的密钥和证书复制到指定的位置,然后重新启动Artifactory,我仍然无法使用https连接到端口8443的Artifactory服务器web界面
## ARTIFACTORY TEMPLATE
artifactory:
## Artifactory Tomcat connector customization on the Artifactory port
tomcat:
## Set up an HTTPS connector for artifactory. This opens a port
## in addition to the default HTTP connector. All relevant
## properties configured for the HTTP connector are applied also
## for this connector (e.g. "maxThreads")
httpsConnector:
## Enable connector with SSL/TLS - ADK
enabled: true
## Port to use for the HTTPS connector - ADK
port: 8443
## Certificate file to use - ADK
certificateFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/ssl/server.crt"
## Certificate key file to use. - ADK
certificateKeyFile: "$JFROG_HOME/artifactory/var/etc/artifactory/security/ssl/server.key"
我们在RHEL 7上使用jfrog-artifactory-cpp-ce-7.17.11-71711900.x86_64.rpm
在以前的版本中,我们在tomcat/conf/server.xml和tomcat/conf/web.xml文件以及Artifactory.system.properties文件中对Artifactory提供的嵌入式tomcat进行了大量定制
我认为system.yaml应该是现在配置https的方式,而不是必须与交付的tomcat混为一谈,这是错误的吗
刚刚在tomcat catalina日志中找到这个
Caused by: java.lang.IllegalArgumentException: /opt/jfrog/artifactory/app/artifactory/tomcat/$JFROG_HOME/artifactory/var/etc/artifactory/security/ssl/server.key (No such file or directory)
因此,似乎不仅仅是使用我在system.yaml中输入的位置作为键
最终放弃了直接配置Artifactory,安装nginx作为反向代理,并将其配置为按照
这对网站和柯南远程连接的https都有效