<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/</id><updated>2021-01-11T13:03:26.201000Z</updated><subtitle>Recent posts to Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</subtitle><entry><title>Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/?limit=25#032a" rel="alternate"/><published>2021-01-11T13:03:26.201000Z</published><updated>2021-01-11T13:03:26.201000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com5c26798bc4cee4d6141b095204ed25bc93b32f64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I still need an answer on to what needs to be changed to remove certificate requirements on OPC-UA communication, as per above reply from myself, I have also tried with the other possible OPC-UA settings as "ONLY_PLAINTEXT" or "ALL" with same result.&lt;/p&gt;
&lt;p&gt;It seems to me there there is some settings, somewhere, besides CODESYSControl_User.cfg that is affected by forcing on certificates that is NOT SET BACK, if that setting is set to something else. Especially "15:03:45.482 | General | | Error: UaSessionPrivate::activateSession - can't find UserNameIdentityToken in endpoint description" tells me this...&lt;/p&gt;
&lt;p&gt;Re-enabling "SIGNED_AND_ENCRYPTED" and all works again, once the certificate has been moved to trusted certificates on the codesys controller.&lt;/p&gt;
&lt;p&gt;13:55:18.800 | DiscoveryWidget    |                                | Adding Server OPCUAServer@ST006-KFC005-PFC200V3-47CD42 with URL opc.tcp://ST006-KFC005-PFC200V3-47CD42&lt;br/&gt;
13:55:20.489 | DiscoveryWidget    |                                | DiscoveryUrl&lt;span&gt;[0]&lt;/span&gt; of FindServers (opc.tcp://ST006-KFC005-PFC200V3-47CD42) differs from the one received in GetEndpoints (opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840)&lt;br/&gt;
13:55:20.489 | DiscoveryWidget    |                                | Adding Url opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840&lt;br/&gt;
13:55:20.489 | DiscoveryWidget    |                                | DiscoveryUrl&lt;span&gt;[0]&lt;/span&gt; of FindServers (opc.tcp://ST006-KFC005-PFC200V3-47CD42) differs from the one received in GetEndpoints (opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840)&lt;br/&gt;
13:55:20.489 | DiscoveryWidget    |                                | Adding Url opc.tcp://ST006-KFC005-PFC200V3-47CD42&lt;br/&gt;
13:55:43.589 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Endpoint: 'opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840'&lt;br/&gt;
13:55:43.589 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Security policy: 'http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256'&lt;br/&gt;
13:55:43.589 | Server Node        | OPCUAServer@ST006-KFC005-PF... | ApplicationUri: 'urn:ST006-KFC005-PFC200V3-47CD42:3S%20-%20Smart%20Software%20Solutions%20GmbH:CODESYS%20Control%20for%20PFC200%20SL:OPCUA:Server'&lt;br/&gt;
13:55:43.589 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Used UserTokenType: UserName&lt;br/&gt;
13:55:49.385 | General            |                                | &lt;span&gt;[uastack]&lt;/span&gt; OpcUa_TcpConnection_ProcessResponse: Error Message!&lt;br/&gt;
13:55:49.385 | General            |                                | &lt;span&gt;[uastack]&lt;/span&gt; OpcUa_TcpConnection_ProcessResponse: Status 0x80130000!&lt;br/&gt;
13:55:49.385 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Error 'BadSecurityChecksFailed' was returned during OpenSecureChannel&lt;br/&gt;
13:55:49.385 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Connection status of server 'OPCUAServer@ST006-KFC005-PFC200V3-47CD42' changed to 'Disconnected'.&lt;br/&gt;
13:56:19.006 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Endpoint: 'opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840'&lt;br/&gt;
13:56:19.006 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Security policy: 'http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256'&lt;br/&gt;
13:56:19.006 | Server Node        | OPCUAServer@ST006-KFC005-PF... | ApplicationUri: 'urn:ST006-KFC005-PFC200V3-47CD42:3S%20-%20Smart%20Software%20Solutions%20GmbH:CODESYS%20Control%20for%20PFC200%20SL:OPCUA:Server'&lt;br/&gt;
13:56:19.006 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Used UserTokenType: UserName&lt;br/&gt;
13:56:25.836 | AddressSpaceModel  | OPCUAServer@ST006-KFC005-PF... | Registered for ModelChangeEvents&lt;br/&gt;
13:56:25.836 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Connection status of server 'OPCUAServer@ST006-KFC005-PFC200V3-47CD42' changed to 'Connected'.&lt;br/&gt;
13:56:25.838 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Revised values: SessionTimeout=1200000, SecureChannelLifetime=3600000&lt;br/&gt;
13:56:25.970 | AddressSpaceModel  | OPCUAServer@ST006-KFC005-PF... | Browse on node 'i=84' succeeded.&lt;br/&gt;
13:56:26.031 | TypeCache          | OPCUAServer@ST006-KFC005-PF... | Reading type info of NodeId NS0|Numeric|35 succeeded&lt;br/&gt;
13:56:26.231 | TypeCache          | OPCUAServer@ST006-KFC005-PF... | Reading type info of NodeId NS0|Numeric|33 succeeded&lt;br/&gt;
13:56:26.433 | TypeCache          | OPCUAServer@ST006-KFC005-PF... | Reading type info of NodeId NS0|Numeric|31 succeeded&lt;br/&gt;
13:56:26.640 | AddressSpaceModel  | OPCUAServer@ST006-KFC005-PF... | Browse on node 'i=85' succeeded.&lt;br/&gt;
13:56:26.799 | TypeCache          | OPCUAServer@ST006-KFC005-PF... | Reading type info of NodeId NS0|Numeric|2004 succeeded&lt;br/&gt;
13:56:26.910 | TypeCache          | OPCUAServer@ST006-KFC005-PF... | Reading type info of NodeId NS0|Numeric|58 succeeded&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/?limit=25#2248" rel="alternate"/><published>2021-01-08T14:18:06.643000Z</published><updated>2021-01-08T14:18:06.643000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.come0e5bc166e511bef8830006bef8353b35527a59a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;I have had my controllers running with certificate and encryption, worked fine.&lt;/p&gt;
&lt;p&gt;Now I wanted to remove it again, as certificate renewel will be a huge work load with the number of PLC's we are looking into. We are looking into finding a setup with automatic certificate renewal from a security server before working with that again.&lt;/p&gt;
&lt;p&gt;I have removed the following again:&lt;br/&gt;
**CODESYSControl_User.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpOPCUAServer]&lt;/span&gt;&lt;br/&gt;
SECURITY.CommunicationMode=SIGNED_AND_ENCRYPTED**&lt;/p&gt;
&lt;p&gt;I have removed the certificates from the security package on the devices, but I still have a user with password on, to access the OPCUAserver under users for the device. But now I can no longer get communication going with the OPCUA client :(&lt;/p&gt;
&lt;p&gt;From UaExpert client:&lt;br/&gt;
15:03:45.430 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Endpoint: 'opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840'&lt;br/&gt;
15:03:45.430 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Security policy: 'http://opcfoundation.org/UA/SecurityPolicy#None'&lt;br/&gt;
15:03:45.430 | Server Node        | OPCUAServer@ST006-KFC005-PF... | ApplicationUri: 'urn:ST006-KFC005-PFC200V3-47CD42:3S%20-%20Smart%20Software%20Solutions%20GmbH:CODESYS%20Control%20for%20PFC200%20SL:OPCUA:Server'&lt;br/&gt;
15:03:45.430 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Used UserTokenType: UserName&lt;br/&gt;
15:03:45.431 | Server Node        | OPCUAServer@ST006-KFC005-PF... | The server returned no certificate, all certificate checks will be skipped.&lt;br/&gt;
15:03:45.482 | General            |                                | Error: UaSessionPrivate::activateSession - can't find UserNameIdentityToken in endpoint description&lt;br/&gt;
15:03:45.533 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Error 'BadConfigurationError' was returned during ActivateSession&lt;br/&gt;
15:03:45.542 | Server Node        | OPCUAServer@ST006-KFC005-PF... | Connection status of server 'OPCUAServer@ST006-KFC005-PFC200V3-47CD42' changed to 'Disconnected'.&lt;/p&gt;
&lt;p&gt;From Codesys controller log:&lt;br/&gt;
CmpOPCUAStack: 08-01-2021 14:01:20" infoId="0"&amp;gt;OpcUa_TcpListener_ReadEventHandler: Process Request returned an error (0x800B0000)!&lt;br/&gt;
CmpOPCUAStack: 08-01-2021 14:01:20" infoId="0"&amp;gt;OpcUa_SecureListener_ProcessRequest: Closing channel due error 0x800B0000!&lt;br/&gt;
CmpOPCUAStack: 08-01-2021 14:01:20" infoId="0"&amp;gt;OpcUa_Endpoint_BeginProcessRequest: Not able to create/send response. (0x800B0000)&lt;br/&gt;
CmpOPCUAProviderIecVarAccess: 08-01-2021 12:22:48" infoId="0"&amp;gt;Valid license found for OPC UA IecVarAccess provider.&lt;br/&gt;
CmpOPCUAProviderIecVarAccess: 08-01-2021 12:22:48" infoId="0"&amp;gt;Symbolconfiguration changed&lt;br/&gt;
CmpOPCUAProviderIecVarAccess: 08-01-2021 12:22:48" infoId="0"&amp;gt;Symbolconfiguration changed&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;Provider CmpOPCUAProviderIecVarAccess with Version 0x305100a registerd at the OPC UA server.&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;Provider CODESYS_DefaultProvider with Version 0x3051000 registerd at the OPC UA server.&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;*&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;All available networkadapters are used.&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;Loopbackadapter activated.&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;URL: opc.tcp://ST006-KFC005-PFC200V3-47CD42:4840&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;Hostname: ST006-KFC005-PFC200V3-47CD42, Port: 4840&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;OPC UA Server Started:&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;****&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;Security policy allows plain text communication. Secure communication is deactivated.&lt;br/&gt;
CmpOPCUAServer: 08-01-2021 12:22:46" infoId="0"&amp;gt;No certificate for the OPC UA server available.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/?limit=25#9da4" rel="alternate"/><published>2020-11-25T09:24:18.401000Z</published><updated>2020-11-25T09:24:18.401000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com5fbe8d14304ddbef957242acf840cd8ffc507564</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you, that works now and is forced to only use Basic256Sha256.&lt;/p&gt;
&lt;p&gt;Additional help to others:&lt;br/&gt;
I had some troubles with a change of hostname that does not kick all the way through to /etc/hosts and thus when pulling a new certificate, it would get the old hostname. I commented out the old hostnames with # and rebooted the controller. OPCUAServer would then not start up as plain text is not allowed and it was shutdown according to the codesys IDE log, so it required to generate new certificates and reboot again for OPCUAServer to start up properly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/?limit=25#eab5" rel="alternate"/><published>2020-11-17T18:19:54.800000Z</published><updated>2020-11-17T18:19:54.800000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.come9af0323064ad53b3a4d5f6201058bb01e2525e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Try this from one of Edwin's old posts:&lt;br/&gt;
CODESYSControl_User.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpOPCUAServer]&lt;/span&gt;&lt;br/&gt;
SECURITY.CommunicationMode=SIGNED_AND_ENCRYPTED&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/?limit=25#1ac4" rel="alternate"/><published>2020-11-17T14:34:47.815000Z</published><updated>2020-11-17T14:34:47.815000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com9e57cd1b520d1357288901b2d51797b7053ddd13</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See pictures, the connecte UaBrowser client is under quarantined certificates, but could still login and change values with just username/password.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys OPC-UA access with only user/pass DESPITE certificate is quarantined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/aa87a55c6b/?limit=25#6d95" rel="alternate"/><published>2020-11-17T14:31:10.717000Z</published><updated>2020-11-17T14:31:10.717000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com19a25ddc2ebedeb083f8e55a0c0cf00414bbfad8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I followed guide: &lt;a href="https://help.codesys.com/api-content/2/codesys/3.5.14.0/en/_cds_runtime_opc_ua_server/" rel="nofollow"&gt;https://help.codesys.com/api-content/2/codesys/3.5.14.0/en/_cds_runtime_opc_ua_server/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I set up a user called "opcua", gave it access rights to modify/write on the opcuaserver object under access rights.&lt;/p&gt;
&lt;p&gt;Created certificate.&lt;/p&gt;
&lt;p&gt;Now I can try to connect from f.ex. UaExpert with sign&amp;amp;encrypt, get the error, move quarentined certificate to trusted and all is fine, I can log in and change data.&lt;/p&gt;
&lt;p&gt;But I can also choose to login without any security options and only use username/password, and still I can changed values.&lt;/p&gt;
&lt;p&gt;This behaviour can not be right? Where is the option to force certificate to be trusted?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>