0

I installed springxd 1.0.1 release. I configured spring-xd to run in HTTPS mode by enabling the SSL properties as specified in https://github.com/spring-projects/spring-xd/wiki/Application-Configuration#enabling-https. I am able to start the xd admin and containers successfully after that. I set the httpSSL.properties as well. However, I am not able to get the xd shell properly. or admin UI to run. I know I have to specify these new ssl properties for them to use, but I am not sure where. The output when I run xd shell is:

1.0.1.RELEASE | Admin Server Target: http://localhost:9393
-------------------------------------------------------------------------------
Error: Unable to contact XD Admin Server at 'http://localhost:9393'.
Please execute 'admin config info' for more details.
-------------------------------------------------------------------------------

Welcome to the Spring XD shell. For assistance hit TAB or type "help".
server-unknown:>

When I try the admin-ui, I just get a 'Connection Interrupted' error.

EDIT: I tried basic authentication by enabling the properties in servers.yml. With this I am able to get the admin-ui to work, but shell still does not work. I am trying to find which configurations I need to set to make this work unsuccessfully. Any help is greatly appreciated.

Any pointers are greatly appreciated.

thanks much,

AG

4

1 回答 1

2

阿莎,

一些澄清:

  1. 您不需要更改 httpSSL.properties,这仅在为 HTTP 源配置 HTTPS 时是必需的。
  2. 由于您已启用 https,因此您必须相应地更改目标 URL,如下所示:
xd:> admin config server https://localhost:9393 

(请注意协议现在是https)

  1. 如果您还启用了基本安全性,则必须将配置参数添加到配置命令中,如下例所示:
xd:> admin config server --uri https://localhost:9393 --username adminUserName --password adminPassword

(如参考文档中所述)

希望这会有所帮助,马吕斯

于 2014-10-08T19:31:17.570 回答