• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

curl and https

I once set up an ActiveMQ client server, with SSL  which shared certificates

When testing web services I use curl over http, no SSL

So I am not quite sure of the context of which curl is using https

Below is an example

curl -H "Content-Type: application/json" -d @input3.txt http://localhost:????/mule/getBalance

So I have 2 questions

1>  Which port does https go through, probably not 8081

2>  How is it actually SSL, there are no trust stores, etc

Thanks for clearing up my confusion
Anthony Lucia
Anthony Lucia
2 Solutions
SSL is over port 443
You can use a self signed cert, curl will automatically follow it through
Dave BaldwinFixer of ProblemsCommented:
The default port for SSL/TLS is 443.  If your destination uses another port, you can too.  cURL has it's own 'trust store'.  If you download the current version of cURL, you will get the current store with it.

Oops! looks like I was wrong.  This page shows where to get a 'ca-bundle' from Mozilla / Firefox: http://curl.haxx.se/docs/sslcerts.html

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now