oasis-open / cti-stix-validator

OASIS TC Open Repository: Validator for STIX 2.0 JSON normative requirements and best practices
https://stix2-validator.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
50 stars 41 forks source link

HTTPSConnectionPool Fatal Error #215

Closed henrawrrr closed 1 month ago

henrawrrr commented 1 year ago

While trying to run the given code: `from stix2validator import validate_file, print_results

results = validate_file("test.json") print_results(results)`

It throws "Fatal Error: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/identifier.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')))"

The test JSON is just an object copied from https://oasis-open.github.io/cti-documentation/examples/identifying-a-threat-actor-profile

rpiazza commented 1 year ago

This is a ssl certificate issue unrelated to the validator. Check to see if your certificates are set up correctly.