Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
mikeradka opened this issue Aug 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mikeradka
Copy link
Contributor

mikeradka commented Aug 23, 2024

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 mikeradka added the enhancement New feature or request label Aug 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant