This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==== Server ==== | |
In [1]: from opcua import ua, server | |
...: | |
...: s = server.server.Server() | |
...: s.load_certificate("/etc/pki/tls/certs/mycert.pem") | |
...: s.load_private_key("/etc/pki/tls/certs/mykey.key.der") | |
...: | |
...: # allow Basic256Sha256_SignAndEncrypt | |
...: # s.get_endpoint() would return only that security policy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==== Server === | |
In [1]: from opcua import ua, server | |
...: | |
...: s = server.server.Server() | |
...: s.load_certificate("/etc/pki/tls/certs/mycert.pem") | |
...: s.load_private_key("/etc/pki/tls/certs/mykeykey.der") | |
...: | |
...: # allow Basic256Sha256_SignAndEncrypt | |
...: # s.get_endpoint() would return only that security policy |
OlderNewer