I encountered an issue using this library above. Note it is now part of Codesys IIoT Libraries SL in the form of Web Client SL, but I am not using this version.
I was sending Content-Type: application/json, HTTP POST using a HTTPS URL. No issue observed initially, successful operation. At some point operation stopped and the codesyscontrol.log file started to accumulate errors:
ERROR: TlsCreateContext2: Failed to save context.
An application reset failed to resume operation and I was unable observe any TCP connection forming to a destination port 443. The error appeared as a TCP_INIT error.
I can find no details as to what may have happened or why a reset of the PLC application did not resume operation. Testing with a curl operation proved to be successful, so I am confident there was no fundamental networking issue preventing a TCP connection forming.
The solution was to reboot the hardware itself, but this is not satisfactory in the long term.
Is there any description of the TLS error I received? Is there any suggestion here that there might be an issue with certificates?
Any advice or information is appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you create a certificate on that device already?
Go to the menu View - Security Screen and check the certificates on the device.
There should be one for your webclient FB.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a certificate created in the quarantine directory relating to the URL used for the webclient FB. This certificate should have been valid as it was created only the week before this problem was encountered.
I investigated a separate location using the same https URL and it has 2 certificates in the same quarantine directory, 1 is created almost 200 days ago, the other over 100 days ago. There have been no similar problems encountered with these certs or https at all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Web Client Library Documentation
Company: 3S - Smart Software Solutions GmbH
Title: Web Client
Version: 1.0.1.7
Categories: Application|Utils
Namespace: WEB_CLIENT
Author: 3S - Smart Software Solutions GmbH
Placeholder: WebClient
I encountered an issue using this library above. Note it is now part of Codesys IIoT Libraries SL in the form of Web Client SL, but I am not using this version.
I was sending Content-Type: application/json, HTTP POST using a HTTPS URL. No issue observed initially, successful operation. At some point operation stopped and the codesyscontrol.log file started to accumulate errors:
An application reset failed to resume operation and I was unable observe any TCP connection forming to a destination port 443. The error appeared as a TCP_INIT error.
I can find no details as to what may have happened or why a reset of the PLC application did not resume operation. Testing with a curl operation proved to be successful, so I am confident there was no fundamental networking issue preventing a TCP connection forming.
The solution was to reboot the hardware itself, but this is not satisfactory in the long term.
Is there any description of the TLS error I received? Is there any suggestion here that there might be an issue with certificates?
Any advice or information is appreciated.
Did you create a certificate on that device already?
Go to the menu View - Security Screen and check the certificates on the device.
There should be one for your webclient FB.
Thank you for the suggestion.
There is a certificate created in the quarantine directory relating to the URL used for the webclient FB. This certificate should have been valid as it was created only the week before this problem was encountered.
I investigated a separate location using the same https URL and it has 2 certificates in the same quarantine directory, 1 is created almost 200 days ago, the other over 100 days ago. There have been no similar problems encountered with these certs or https at all.