fernandokendy commented on issue #1682:
URL: https://github.com/apache/plc4x/issues/1682#issuecomment-2210944069

   I'm facing the same error: 
   `Cannot invoke 
"org.apache.plc4x.java.opcua.readwrite.PascalByteString.getLengthInBits()" 
because "this.receiverCertificateThumbprint" is null`
   I first tested connecting with the certificate through OPCUA to Prosys OPCUA 
Simu server, which worked. When testing with plc4j, this error keep on popping. 
I created the keystore .p12 based on the working certificate. 
   When connecting as anonymous or with User and Password, it works fine.
   `try (PlcConnection plcConnection = 
driverManager.getConnection("opcua:tcp://Turing.lab.mtu-digilab.io:53530/OPCUA?"
 +
           
"discovery=false&message-security=SIGN_ENCRYPT&security-policy=Basic256Sha256&" 
+ 
           "key-store-file=keystore.p12&key-store-password=admin")) ...`
   I'm a bit unexperienced with OPCUA and certificates. 
   I'll also upload my cert files.
   [cert.zip](https://github.com/user-attachments/files/16110617/cert.zip)
   Thank you :)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to