"TLS exchange" warning (W1041)

Hi Guys,

I am using Citect 2018 R2 and getting a warning which do not know how to fix:

"TLS exchange, if enable, will not succeed using an IP address" (W1041).

When I double click the warning on teh compile results list, it takes me to the Network Address definition form but nothing there refers to TLS.

Any ideas as to how to fix this warning?

Thank you,

Jhon

 

  • Hi ,
    In order to use TLS, you need to define the machine name for the DNS.
    In Citect Sudio, go to Topology > Edit > Computer, enter the machine name in the DNS column. You might need to show this column if you can't see it. Try compile your project again.
    Let me know how you go. Do you mind also letting me know which security mode you have selected? Is it default of Mixed Mode?
  • Hi Olivier,

    Thank you for your reply.

    I am not interested, at least not just yet, in using TLS at all. I just want to get rid of the "TLS Exchange" warning message. Security mode is set to default.

    I put some names in teh "DNS Name" property for each computer and the TLS warning is gone. Thanks you for your help.

    Regards,
    Jhon
  • Hi,

    Some more info on this.

    If encryption is enabled in your system and contents of the 'Address' field in the network address table is set to an IP address, then the
    TLS exchange will not succeed. To resolve this, you need to configure the computer name of the server in the 'DNS Name' field in the computers table.

    This is step is not needed if the 'Address' field in the network address table has been configured with a machine name.

    As it is not known what the encryption settings are going to be on the destination machine(s), this is validated at compile time (so even if you do not use encryption at all).

    An alternative approach would be the suppress the compiler warning for the time being:
    [CtEdit]SuppressCompilerWarning=W1041