Skip to content

Trust on First Use (TOFU) - Beckhoff #1553

Closed Answered by Seversonic
Seversonic asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you all for the help!

Through a lot of testing, and your code snippets, I was able to get the Initialization process to work with the following code:

The only issue right now is that I cant get it working on localhost, it only works remotely.


import asyncio
import logging
import sys
import socket
from pathlib import Path
from cryptography.x509.oid import ExtendedKeyUsageOID
sys.path.insert(0, "..")
from asyncua import Client, Node
from asyncua.crypto.security_policies import SecurityPolicyBasic256Sha256
from asyncua.crypto.cert_gen import setup_self_signed_certificate
from asyncua.crypto.validator import CertificateValidator, CertificateValidatorOptions
from asyncua.crypto.truststo…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Seversonic
Comment options

@schroeder-
Comment options

@Seversonic
Comment options

@schroeder-
Comment options

@Seversonic
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Seversonic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants