Security

connection in jupyeter notebook has SSL wrong infos

bigq
New Member

[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)

import splunklib.results as results
import splunklib.client as client
import io, os, sys, types,datetime,math,time
import ssl
from io import StringIO

Data Manipulation

import random
import numpy as np
import pandas as pd
# Your Splunk Instance
HOST = "10.10.xxx"
PORT = xxx
USERNAME = "test"
PASSWORD = "test!"

Create a Service instance and Attempt Connection to Splunk

print(ssl.OPENSSL_VERSION)
try:
service = client.connect(host=HOST, port=PORT, username=USERNAME, password=PASSWORD)
print("Connection Successful")
except Exception as e:
print(str(e))

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...