ocsf-server icon indicating copy to clipboard operation
ocsf-server copied to clipboard

Swagger API curl command insufficient for schema.ocsf.io's Self-Signed Certificate

Open mikeradka opened this issue 6 months ago • 0 comments

Minor issue, but something I noticed when copy/pasting the curl examples given by the Swagger API.

The curl command provided doesn't work with our public OCSF server, because it has a self-signed certificate. I had to add the -k switch to curl to get it to work:

image
  • Curl command: curl -X GET "https://event-schema.splunk.com/export/schema" -H "accept: application/json"

  • Yields:

curl -X GET "https://event-schema.splunk.com/export/schema" -H "accept: application/json"                              py rules-venv py base
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.se/docs/sslcerts.html

Adding the -k curl switch makes it return the expected results.

I am not sure this can be fixed or is worth fixing, but still wanted to raise it in case there is a way to reduce a minor annoyance for the community.

mikeradka avatar Aug 23 '24 20:08 mikeradka