LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW HTTP Client and PKCS #12 (.PFX) certificates

Solved!
Go to solution

Hi Community

 

I have a problem that I need a bit of assistance with, its a bit out of my domain of experience but I'm sure there are some clever people out there who can help me.

 

I need to perform HTTP calls to a web service running on a device.

 

The vendor has issued me a certificate which allows secure connection.

 

I can perform HTTPS calls in chrome and request the time/date from the device.

 

 

I've been able to export the certificate as a Personal Information Exchange - PKCS #12 (.PFX) using the Windows Certificate Export Wizard

 

I am able to successfully setup Postman to perform a GET to return the Date/Time, see my screenshots of Postman attached.

 

2020-07-29 (2).png2020-07-29 (3).png

 

However I just cant replicate this in LabVIEW using the LabVIEW HTTP Client library using ConfigSSL.vi

 

I feel I'm missing something, or maybe what I'm trying to do is unsupported.

 

Thankyou for anyone who reads this post and spends time to help.

 

Cheers

 

Kurt Friday

 

0 Kudos
Message 1 of 2
(1,316 Views)
Solution
Accepted by topic author KurtFriday

Resolved!

 

Thank you to LVS-Tools for the key piece of advice

 

https://lvs-tools.co.uk/

 

The trick was converting the PKCS #12 to a Standard PEM format

 

I found an online converter and converted my .pfx certificate to a .pem 

 

2020-07-30 (1).png

 

then I configured my test app as shown

 

2020-07-30.png2020-07-30 (3).png

 

I'm incredibly grateful to the support team at Lvs-Tools for getting me through this roadblock

 

0 Kudos
Message 2 of 2
(1,237 Views)