Application Certificate not being created

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
acidiclustre
Full Member
Full Member
Posts: 9
Joined: 09 Jun 2015, 21:16

Application Certificate not being created

Post by acidiclustre »

HI All,

I am trying to include the possibility of Certificates to my Server application. I followed the Getting Started Guide, but somehow I am not being able to auto-generate the certificates for my server application. I have added the following line of code to my Program.cs (starting point of the application), however it does not help:

Code: Select all

ApplicationInstance.Default.AutoCreateCertificate = true;
Surprisingly the same line of code works flawlessly in the Lesson 1 Server Application (Getting Started Server Guide). I have compared the app.config files of the Lesson_1 server as well as my own server but I can't find the problem area, What could the issue be? Due to this issue, my application doesn't have any secure endpoints, only the one with the SecurityProfile 'None'.

Any help will be truly appreciated.
Thanks and regards,
Sup

acidiclustre
Full Member
Full Member
Posts: 9
Joined: 09 Jun 2015, 21:16

Re: Application Certificate not being created

Post by acidiclustre »

Solved, there is a utility called Opc.Ua.CertificateGenerator.exe. This utility needs to be in the bin folder of the Server Application

Post Reply