https (ssl) connection
Daniel79
Posts: 16
i need to connect to a https server..... is possible with netlinx code?
thank's
Daniel.
thank's
Daniel.
0
Comments
thank's
I don't know the answer so I would guess that you would have to find a java class with a https client and do it in Duet.
If not then you may need to write a gateway app on a PC to do it.
I'm no authority on ssl encryption but I'm pretty confident doing it in Netlinx code would slow the processor to a crawl and break your spirit in the attempt to code it.
Actually, it was not a cruel answer but a typo. (omission...). I meant to type it is not). Sorry about the tease. It was not intended. This is one of the big reasons I've wanted to completely switch over to Duet as I think (in theory) it should be possible to do it within that framework. But the other side of that is that it would indeed probably bring a lesser processor to its knees.
If you could keep the port open after that you might be ok, but the device I needed to connect with did not honor keep-alive and dropped every connection right after it was serviced.
We finally ended up putting a little PHP script on a linux box and using it as a relay from http to https - this, of course, ruined the SSL security, but since it was just changing channels on a DirecTV streaming system, there was never any initial requirement for security.
VLAN and / or dual home. Of course, security requirements depend on the network...
Since everything was pro grade cisco, it probably was pretty secure. The only viable intercept attacks would have had to be MitMs between the linux box and the switch, or the amx box and the switch - both of which were in the same secured server room, plugged into a local switch.
Looking into this issue (since we now have an installation of Cisco IPTV to deal with), almost a year later.
Sorry to say, but Stunnel does not appear to be a solution. It is Unix/Win32 based.
My solution at this time has been to create an app that will sit on a pc, that bridges the AMX(http) network thru to the Cisco(https) network. It takes calls in on http port 80 and translates them back out on the https:ip for the targetted Cisco set top box.
So far, it has performed what we want on bench tests. I'm about to apply it into the installation. Once I get around the network paranoia I'll provide an update once it's in and working.
That's similar to what I found when using the Apache Commons HttpClient library. Grabbing a URL over HTTPS took about 10 seconds, while HTTP was some fraction of a second. This was on an NI-4100. Maybe with the NX processors we'll finally have the CPU power to do HTTPS.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
I tested it, and it actually worked, then I tested with google.com and my master not so slowly lost memory and died.
However on a good note, was talking with my buds at Infocomm and the new master seems rock solid with SSL.
Can't wait to get my hands on the new controller!
Almost forgot the old "No hacking" rule there Jeff.
Yeah, I think I forgot that rule too...
I'm running Firmware V4.1.404 on an NI4100 but seems to get
Line 19 (02:39:00):: java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocketFactory
when calling create socket using javax.net.ssl.SSLSocketFactory and javax.net.ssl.SSLSocket;
Is there something obvious I'm missing ?
Thanks for any insight you can provide
You may need to use DynamicImport to have your module access those libraries.
Thanks