用于在 AEM 6.5 中设置 SSL 的 Curl 命令
Curl Command to setup SSL in AEM 6.5
以下 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]
https://helpx.adobe.com/experience-manager/6-5/sites/administering/using/ssl-by-default.html
正在寻找关于 6.5 应该使用什么命令的建议。
我正在处理一些自动化任务,因此我需要仅通过命令行而不是通过 SSL 向导来设置 SSL。
当我通过 SSL 向导手动尝试时,它成功了,但无法通过上面的 curl
命令工作。
已解决。该属性需要是 httpsHostname 而不是 httpsHostName 。小写 'n' 而不是大写 'N'
以下 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]
https://helpx.adobe.com/experience-manager/6-5/sites/administering/using/ssl-by-default.html
正在寻找关于 6.5 应该使用什么命令的建议。
我正在处理一些自动化任务,因此我需要仅通过命令行而不是通过 SSL 向导来设置 SSL。
当我通过 SSL 向导手动尝试时,它成功了,但无法通过上面的 curl
命令工作。
已解决。该属性需要是 httpsHostname 而不是 httpsHostName 。小写 'n' 而不是大写 'N'