p3270 icon indicating copy to clipboard operation
p3270 copied to clipboard

verifyCert='no' is not respected, it seems to default to yes regardless

Open mc-zact opened this issue 2 years ago • 2 comments

Using this

from p3270 import P3270Client

my_client = P3270Client(luName='#LU01', hostName='170.1.2.3', hostPort='1234',
                        modelName='3278-4', verifyCert='no', timeoutInSec=5)

I found that verifyCert would still default to yes, and so this arg is never appended:

            if self.conf.verifyCert == "no":
                self.args.append('-noverifycert')

I'm not quite sure why though didn't really see anything that seemed wrong at first glance, and the other args are not behaving like this

I had to manually edit the code :

    def __init__(self, cfgFile=None, hostName='localhost', hostPort='23',
                 modelName='3279-2', traceFile=None,
                 luName=None, codePage='cp037', screensDir=None, verifyCert='no', enableTLS='no'):

This works

mc-zact avatar Dec 13 '22 00:12 mc-zact