From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Web UI Builder and Data Dashboard

cancel
Showing results for 
Search instead for 
Did you mean: 

web ui builder using ssl

Solved!
Go to solution

I am using LV2012 with WebUI Builder.  I am trying to use SSL for security.  My application works fine with http.  I can access my web services directly through https.  When I try to import the web services into Web UI Builder using port 8081 (for SSL), I get the following error....

 

LabVIEW Web UI Builder cannot connect to the server. Verify the server address and that the server is running. Also ensure the server hosts a clientaccesspolicy.xml file at the root level with valid permissions.

 

With LV2012 is a "clientaccesspolicy.xml" required to do SSL?  It is not needed for http on port 8080.

0 Kudos
Message 1 of 2
(8,750 Views)
Solution
Accepted by Ken_Jones

Hi Ken,

 

LabVIEW should provide a default clientaccesspolicy.xml file over both HTTP and HTTPS.

 

There could be many different issues here:

 

- If you access https://yourmachine:8081/clientaccesspolicy.xml in a browser, do you see the policy file? (There should be one automatically, as I mentioned).

If this works but you get a certificate error / warning that you skipped - this is because the default LV self-signed certificate for the web server is untrusted. Web UI Builder can't connect over HTTPS in this case, unless you trust the certificate permanently by installing it locally. Additionally, you'll need to connect to the exact hostname specified by the certificate. If you don't get a certificate error / warning when accessing the server directly, you should be able to use it in Web UI Builder (using the exact same server name syntax).

 

- If you're using the Import Web Service feature in Web UI Builder, and trying to connect to "yourmachine:8081", try "https://yourmachine:8081" instead.

 

- If you can't use Import Web Service using the exact hostname that the SSL certificate is configured for in (the editor, depending on network configuration, may not be able to connect to via 'yourmachine', only via your IP address; but 'yourmachine' would work when running a built application): You can initially design your application in the editor by connecting over HTTP. Then when you're ready to Build & Deploy, you can use the "server uri in" input of the generated web service VIs to enable SSL right before you build.

Message 2 of 2
(8,748 Views)