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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to connect to a OPC UA server using the
CertificateIdentifierandCertificateStoreType.DirectoryasStoreType.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
DirectoryCertificateStoreclass I can see that the createdEntryhas the paths to the.dercertificate in thecertsfolder and the.pemprivate key in theprivatefolder of theCertificateIdentifier.StorePath. But the propertyCertificateWithPrivateKeyof the privateEntryclass inDirectoryCertificateStoreis only set, in the initialization, to null and then only checked against null.Both the certificate and the private key extracted from a
.pfxfile usingopenssl.What am I doing wrong? Is the store type
Directoryeven a valid client authentication method?Version: 1.4.372.56
Beta Was this translation helpful? Give feedback.
All reactions