I have a OPC-ua server on a siemens s7-1200 plc. Now when I want to connect using an OPC client I made in .NET. I have the option to enable auto accept untrusted servercertificates. The documentation states that this should not be used in production. It does not state why.
The only reason I can think of is someone getting into my network and spoofing a fake server between the client and the server.
Why should I turn this off and manually put the certificate in the thrusted certificates folder? My server and client are on a local network (that have internet access).
<!-- WARNING: The following setting (to automatically accept untrusted certificates) should be used
for easy debugging purposes ONLY and turned off for production deployments! -->
<AutoAcceptUntrustedCertificates>false</AutoAcceptUntrustedCertificates>