LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ and Call Library Function Node

I found that our firewall was keeping me from talking to an outside server.  Ultimately, that's ok, as my final application will talk to a server that's on the same subnet (internal to our company).  I'm currently seeking an internal IP address that might serve up some html to me if I POST to it, just to test the ground layer of code.  Assuming I get that working, my next step is to get Stunnel to establish a secure connection to the real application that will serve up html (XML eventually) over a sucure (TLSv1) channel.  So, my questions are:

 

(1) what are the order of events?  For example, do I kick off Stunnel, then try to establish the TCP/IP connection, or vise/versa

 

(2) Does Stunnel return anything that I associate with or pass to the TCP/IP conn, or is it by the IP Address (found in the config file) that the two are related, and there's no true interaction between LabVIEW and Stunnel?

 

(3) When I execute Stunnel.exe, a little Stunnel Icon appears in my status bar (bottom right of my desktop).  Even when I exit the command window (if I kicked off Stunnel from a command window), the icon remains until I right-click it and select 'Exit'.  Is there a way to programatically exit Stunnel?

0 Kudos
Message 11 of 12
(600 Views)

The server I'm talking to allows me (without stunnel) in a non-secure http connection, to do a GET (shown below) and receive back some html that normally a web browser would receive/display.  Since I was able to do that, I then run stunnel (with no options) and I was able to get stunnel to bind to the IP address of the server I'm trying to talk to (according to the log).  However, I'm not seeing any html coming back to me when I send the same GET.

 

GET / HTTP/1.1
Host: 10.6.1.5
Connection: Keep-Alive

Authorization: Basic YWRtaT46U5EkJHuvcmQx
Credentials: admin:Pswrd

 

There is a login that occurs first thing, but in the non-secure mode, I was able to satisfy that automatically with the Authorization and Credentials fields.  Do I have to call any openssl encryption routines to encypt my http commands, or should Stunnel take care of that automatically based on a setting in the Stunnel.conf file?  What setting tells it that? 

 

OR, is there a different problem.  Do I have to run Stunnel with some option (-Z) that tells it that he's really a proxy.  If that's the case, what do I need to do differently in the conf to set things up that way? Right now I just have one accept and one connect field in my .conf file.

0 Kudos
Message 12 of 12
(582 Views)