简体   繁体   English

如何为Jenkins配置SSL?

[英]How to configure SSL for Jenkins?

We are configuring SSL to work with a couple of our tools, but we struggle to make Jenkins work with SSL. 我们正在配置SSL以使用我们的一些工具,但我们很难让Jenkins使用SSL。

We have different password for the keystore and the key, hence we need to set both in JENKINS_ARGS 密钥库和密钥有不同的密码,因此我们需要在JENKINS_ARGS设置它们

By Default, these are the options I found in the /etc/default/jenkins: --javahome=$JAVA_HOME --httpPort=$HTTP_PORT (default 8080; disable with -1) --httpsPort=$HTTP_PORT --argumentsRealm.passwd.$ADMIN_USER=[password] --argumentsRealm.roles.$ADMIN_USER=admin --webroot=~/.jenkins/war --prefix=$PREFIX 默认情况下,这些是我在/ etc / default / jenkins中找到的选项: - --javahome=$JAVA_HOME --httpPort=$HTTP_PORT (default 8080; disable with -1) --httpsPort=$HTTP_PORT --argumentsRealm.passwd.$ADMIN_USER=[password] --argumentsRealm.roles.$ADMIN_USER=admin --webroot=~/.jenkins/war --prefix=$PREFIX

I searched the documentation here , but didn't find anything helpful. 我在这里搜索了文档,但没有找到任何有用的信息。

so here are my questions: 1- are there the following attributes as parameters: keyPassword, keyType? 所以这是我的问题:1-是否有以下属性作为参数:keyPassword,keyType? 2- if not, what would be the best approach? 2-如果不是,最好的方法是什么?

Thanks. 谢谢。

It looks like Jenkins forces the usage of reverse-proxy. 看起来Jenkins强制使用反向代理。 It doesn't support all the features of SSL to be opened in a direct client-server connection, so I guess using Apache or Nginx reverse proxy is the "correct" way for now. 它不支持在直接客户端 - 服务器连接中打开SSL的所有功能,因此我认为使用Apache或Nginx反向代理是现在的“正确”方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM