【问题标题】:Curl Command to setup SSL in AEM 6.5在 AEM 6.5 中设置 SSL 的 Curl 命令
【发布时间】:2019-05-24 08:15:28
【问题描述】:

以下 Adob​​e 官方文档中提到的 curl 命令适用于 AEM 6.3,但对于 AEM 6.5,它会导致 HTTP 500 错误-NullPointerException

curl \
  -u user:password \
  -F "keystorePassword=password" \
  -F "keystorePasswordConfirm=password" \
  -F "truststorePassword=password" \
  -F "truststorePasswordConfirm=password" \
  -F "privatekeyFile=@localhostprivate.der" \
  -F "certificateFile=@localhost.crt" \
  -F "httpsHostName=host.example.com" \
  -F "httpsPort=8443" \   
  http://host:port/libs/granite/security/post/sslSetup.html



*ERROR* [POST /lib/granite/security/post/sslSetup.html HTTP/1.1]
com.adobe.granite.security.user.ui.internal.servlets.SSLConfigurationServlet Error while Configuring SSL:
java.lang.NullPointerException: null
          at java.util.Hashtable.put (Hashtable.java:460)
          at com.adobe.granite.security.user.ui.internal.servlets.SSLConfigurationServlet.configureSSLConnectionFactory(SSLConfigurationServlet.java:525)
          [com.adobe.granite.security.ui:1.0.58]
          at com.adobe.granite.security.user.ui.internal.servlets.SSLConfigurationServlet.doPost(SSLConfigurationServlet.java:374)
          [com.adobe.granite.security.ui:1.0.58]

https://helpx.adobe.com/experience-manager/6-5/sites/administering/using/ssl-by-default.html

寻找关于 6.5 的命令应该是什么的建议。

我正在处理一些自动化任务,因此我只需要通过命令行而不是通过 SSL 向导来设置 SSL。

当我通过 SSL 向导手动尝试时,它成功,但无法通过上述 curl 命令工作。

【问题讨论】:

  • 您能否添加NullPointerException。这可能已经为我们指明了正确的方向。
  • 添加了异常。请检查。
  • 已解决。该属性必须是 httpsHostname 而不是 httpsHostName 。小写“n”而不是大写“N”
  • 您能否使用此信息为您的问题创建一个答案并接受它(允许回答您自己的问题)。
  • 完成。回答。太棒了

标签: aem


【解决方案1】:

已解决。该属性需要是 httpsHostname 而不是 httpsHostName 。小写'n'而不是大写'N'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-09
    • 1970-01-01
    • 2017-06-10
    • 2023-03-31
    • 2019-10-11
    • 2016-05-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多