curl command for SSL setup | Community
Skip to main content
Level 5
October 7, 2024

curl command for SSL setup

  • October 7, 2024
  • 2 replies
  • 632 views

Hi all,

 

I like to know if there is a curl command for uploading SSL certificate with intermedate cert. We have been able to do that without an intermediate certificate, but we like to try something new this year.

 

The old way is 

curl -u admin:'password' -F "keystorePassword=secrete" -F "keystorePasswordConfirm=secrete" -F "truststorePassword=secrete" -F "truststorePasswordConfirm=secrete" -F "privatekeyFile=@my_private.key" -F "certificateFile=@my_cert.cer" -F "httpsHostname=myhost.com" -F "httpsPort=4321"

 

I wonder if there is a flag as 

curl -u admin:'password' -F "keystorePassword=secrete" -F "keystorePasswordConfirm=secrete" -F "truststorePassword=secrete" -F "truststorePasswordConfirm=secrete" -F "privatekeyFile=@my_private.key" -F "certificateFile=@my_cert.cer" -F "intermediateFile=@intermediate.cer" -F "httpsHostname=myhost.com" -F "httpsPort=4321"

 

 

Thank you!

 

-Kevin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SureshDhulipudi
Community Advisor
Community Advisor
October 8, 2024

did you try your new command with intermediate flag?

Is that not working?, giving any error?

 

curl -u admin:'password' -F "keystorePassword=secrete" -F "keystorePasswordConfirm=secrete" -F "truststorePassword=secrete" -F "truststorePasswordConfirm=secrete" -F "privatekeyFile=@my_private.key" -F "certificateFile=@my_cert.cer" -F "intermediateFile=@intermediate.cer" -F "httpsHostname=myhost.com" -F "httpsPort=4321"

kautuk_sahni
Community Manager
Community Manager
October 16, 2024

@kevin_gta Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni