Hi, I am trying to connect mainframe server using below snippet;
import time, sys
from py3270 import Emulator
delayt = 1 # In sec, slowing down to be able to see the screen update
mylogin = '[xxxxxx]'
mypass = '[xxxxxxx]'
myhost = '[xxxxxxxxx]:5037'
screenrows = []
# use x3270 so you can see what is going on
my3270 = Emulator(visible=True)
# TSO login
my3270.connect(myhost)
my3270.wait_for_field()
#my3270.send_clear()
I am getting following error:
SSL: InitializeSecurityContext: error 0x80090322 (The target principal name is incorrect.)
Can someone suggest the fix? I am looking for attribute which can disable cert validation while connection; similar to "wc3270.verifyHostCert: false"