Replies: 3 comments 1 reply
-
my recommendation is to follow the samples to load an ApplicationConfiguration, often times, depending on the target platform, it is not sufficient to load the private key. It also needs to be in the right keystore and accessible. |
Beta Was this translation helpful? Give feedback.
-
@pw-sgr I see, for client user auth the certificate needs to be loaded and there is no sample yet. |
Beta Was this translation helpful? Give feedback.
-
@mregen I've subscribed to issue and will be looking if I can add anything, tank you |
Beta Was this translation helpful? Give feedback.
-
I'm trying to connect to a OPC UA server using the
CertificateIdentifier
andCertificateStoreType.Directory
asStoreType
.When doing so I get the exception that it couldn't find the private key when signing the certificate with the rsa key.
When debugging the
DirectoryCertificateStore
class I can see that the createdEntry
has the paths to the.der
certificate in thecerts
folder and the.pem
private key in theprivate
folder of theCertificateIdentifier.StorePath
. But the propertyCertificateWithPrivateKey
of the privateEntry
class inDirectoryCertificateStore
is only set, in the initialization, to null and then only checked against null.Both the certificate and the private key extracted from a
.pfx
file usingopenssl
.What am I doing wrong? Is the store type
Directory
even a valid client authentication method?Version: 1.4.372.56
Beta Was this translation helpful? Give feedback.
All reactions