How to create HTTPS connection?

Hello:
I’m testing an HTTPS client way to transfer data. I used the HTTP case program and the transfer completed successfully.
image
Now that I have set up a HTTPS server on my computer, the client of PLC using HTTPS wants to further use HTTPS for data transfer.
I don’t know how to configure sslCfgIdent for httpsClient. I generated cert.pem and key.pem using openssl at my computer.
Is there a more detailed way to configure SSL?

Thank you!

Hi,

you need to configure a SSL configuration in the projects configuration view, please see here how to do that:
https://help.br-automation.com/#/en/6/access_and_security%2Fssl%2Fssl_configuration.html

The https FB in your code then has to reference to this configuration.

Also you could check the following very good descriptions from Jaroslav, which cover the use-cases for SSL communication for OPC UA and mappView, but also contain some general and helpful information for your use-case:

Best regards!

2 Likes

Thanks for your reply.
The problem’s been solved.
The ArSslOpen() function block is required to get the ident of the SSL configuration.

1 Like