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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...