connectors
connectors copied to clipboard
[CROWDSTRIKE] TLS Negotation issues on Alpine 3.17 (OpenSSL 3.0) UNSAFE_LEGACY_RENEGOTIATION_DISABLED
Description
Alpine 3.17 causes an intermittent UNSAFE_LEGACY_RENEGOTIATION_DISABLED
See https://github.com/dotnet/dotnet-docker/issues/4332#issuecomment-1384196212
Environment
- OS (where OpenCTI server runs): CentOS Stream 9
- OpenCTI version: 5.7.2
- OpenCTI client: Python (Connector SCOPE)
- Other environment details: Kubernetes deployment
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Run the CS connector on CENT OS Stream 9 w/ containerd and Alpine 3.17
- Sadness
Expected Output
Correct TLS negotiation
Actual Output
{"timestamp": "2023-04-28T19:48:26.834518Z", "level": "ERROR", "name": "pycti.connector", "message": "CrowdStrike connector internal error: HTTPSConnectionPool(host='api.crowdstrike.com', port=443): Max retries exceeded with url: /intel/combined/reports/v1(Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1007)')))"}
Additional information
This should fix it
RUN sed -i 's/providers = provider_sect/providers = provider_sect\n\
ssl_conf = ssl_sect\n\
\n\
[ssl_sect]\n\
system_default = system_default_sect\n\
\n\
[system_default_sect]\n\
Options = UnsafeLegacyRenegotiation/' /etc/ssl/openssl.cnf
Screenshots (optional)
May also be worth the lift to migrate to the official client -> https://github.com/CrowdStrike/falconpy