Updating the SSL Configuration Via cURL

Statement  : Updating the SSL Configuration Via cURL

Pre-requisite : 
  • JRE 1.8
  • AEM 6.3
  • Assuming privatekey.der and certificate.csr files are generated use of RSA tool
Solution :
cURL commond for the SSL setup: 
1
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 "httpsPort=8443" http://host:port/libs/granite/security/post/sslSetup.html
Note: run the above cURL commands from the folder path where the .DER abd .CRT files are. else use the complete path for these files while using the different folder path.

No comments:

Post a Comment