Search found 7 matches

by ronaldk
Fri Nov 06, 2015 7:13 pm
Forum: WiPy and CC3200 boards
Topic: Connect over SSL
Replies: 11
Views: 21723

Re: Connect over SSL

Hi Daniel,

Works like a charm, also with root certificate validation.
Many thanks for fixing the issue.

Regards,
Ronald
by ronaldk
Fri Nov 06, 2015 5:44 am
Forum: WiPy and CC3200 boards
Topic: Connect over SSL
Replies: 11
Views: 21723

Re: Connect over SSL

Hi Daniel,

I'll try first thing I get home this evening (well, after all family business ;) ) and will let you know.
Great support!

/Ronald
by ronaldk
Thu Nov 05, 2015 6:19 pm
Forum: WiPy and CC3200 boards
Topic: Connect over SSL
Replies: 11
Views: 21723

Re: Connect over SSL

Thanks again for answering. Following your guidelines - Use DER encoded root CA; - Upload the certificate as ca.pem; - Resolve hostname to IP-adres before connecting, the following code should do the trick, but as you can see it returns 208. >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, ...
by ronaldk
Wed Nov 04, 2015 8:19 pm
Forum: WiPy and CC3200 boards
Topic: socket.connect using hostname
Replies: 1
Views: 4199

socket.connect using hostname

Hi all, I am trying to connect to a website (also see: http://forum.micropython.org/viewtopic.php?f=11&t=1089). All the samples I see, first resolve the hostname to an ip-address using: socket.getaddrinfo and then call socket.connect, eg: >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>>...
by ronaldk
Tue Nov 03, 2015 6:28 am
Forum: WiPy and CC3200 boards
Topic: Connect over SSL
Replies: 11
Views: 21723

Re: Connect over SSL

Hi Daniel, Thanks for your response. I looked into the TI documentation and indeed, it needs to be the DER encoded certificate of the root CA.The root CA of *.servicebus.windows.net is Baltimore CyberTrust Root. So I updated my code to: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IP...
by ronaldk
Mon Nov 02, 2015 4:39 pm
Forum: WiPy and CC3200 boards
Topic: Remove /flash/cert/ca.pem
Replies: 1
Views: 2316

Remove /flash/cert/ca.pem

Hi all,

The file ‘/flash/cert/ca.pem’ is written to the hidden file system (http://micropython.org/resources/docs/e ... odule-ussl). How can I remove a ca.pem file when I no longer need it?

Cheers
/Ronald
by ronaldk
Sat Oct 31, 2015 10:25 pm
Forum: WiPy and CC3200 boards
Topic: Connect over SSL
Replies: 11
Views: 21723

Connect over SSL

Hi all, I am trying to connect to a public service over SSL (servicebus.windows.net). Following http://micropython.org/resources/docs/en/latest/wipy/library/ussl.html#module-ussl, I use the following code: addr = socket.getaddrinfo('<mynamespace>.servicebus.windows.net', 443)[0][4] s = socket.socket...