Expand my Community achievements bar.

curl command for SSL setup

Avatar

Level 7

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

2 Replies

Avatar

Community Advisor

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"

Avatar

Administrator

@kevingtan 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