首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >用于在AEM 6.5中设置SSL的Curl命令

用于在AEM 6.5中设置SSL的Curl命令
EN

Stack Overflow用户
提问于 2019-05-19 18:10:11
回答 1查看 470关注 0票数 1

下面的Adobe官方文档中提到的curl命令适用于AEM6.3,但是对于AEM6.5,它会导致HTTP500错误- NullPointerException

代码语言:javascript
运行
复制
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命令工作。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-05-24 08:15:28

已解决。该属性需要为httpsHostname,而不是httpsHostName。小写“n”,而不是大写“N”

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56206783

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档