Message6933
> Apparently you are saying that SSL servers from jython do not work, <sigh>, but irrelevant.
Yes that's true. Patches are welcome.
> I am saying that the jython CLIENT xmltest.py failed, when connecting to the server sslxmlrpclibserver.py
This is your jython client code
# ------------------
import xmlrpclib
server = xmlrpclib.ServerProxy('https://localhost:8443')
print server.add(1,2)
print server.div(10,4)
# ------------------
I see no code for managing certificates?
Jython is not like cpython. Cpython does not verify the chain of trust for server certificates. Jython does verify the chain of trust, and will refuse to open the connection if it cannot verify the server.
So you have two options.
1. Disable certificate checking on jython
http://jython.xhaus.com/installing-an-all-trusting-security-provider-on-java-and-jython/
http://tech.pedersen-live.com/2010/10/trusting-all-certificates-in-jython/
2. Add your (self-signed?) certificate to your local java trust store, so that your client will trust your server.
Google("java install self-signed certificate") |
|
Date |
User |
Action |
Args |
2012-03-20 21:02:54 | amak | set | messageid: <1332277374.89.0.758380061334.issue1688@psf.upfronthosting.co.za> |
2012-03-20 21:02:54 | amak | set | recipients:
+ amak, public.marvin |
2012-03-20 21:02:54 | amak | link | issue1688 messages |
2012-03-20 21:02:54 | amak | create | |
|