在AEM 6.5中设置SSL的Curl命令

在AEM 6.5中设置SSL的Curl命令,aem,Aem,Adobe下面的官方文档中提到的curl命令在AEM 6.3中运行良好,但是在AEM 6.5中它会导致HTTP 500错误-NullPointerException curl \ -u user:password \ -F "keystorePassword=password" \ -F "keystorePasswordConfirm=password" \ -F "truststorePassword=password" \ -F "truststorePasswordC

Adobe下面的官方文档中提到的
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]

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

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


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

已解决。属性必须是httpsHostname而不是httpsHostname。小写字母“n”而不是大写字母“n”

您可以添加
NullPointerException
。这可能已经为我们指明了正确的方向。添加了例外。请检查。已解决。属性必须是httpsHostname而不是httpsHostname。请用小写字母“n”而不是大写字母“n”为您的问题创建一个答案并接受它(允许回答您自己的问题)。完成。回答。真棒