Security
Highlighted

connection in jupyeter notebook has SSL wrong infos

New Member

[SSL: WRONGVERSIONNUMBER] 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
Speak Up for Splunk Careers!

We want to better understand the impact Splunk experience and expertise has has on individuals' careers, and help highlight the growing demand for Splunk skills.