OPC UA Server with HTTPS based profiles

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

Moderator: uasdknet

Post Reply
BrenoMVAlves
Jr. Member
Jr. Member
Posts: 1
Joined: 03 Dec 2018, 16:06

OPC UA Server with HTTPS based profiles

Post by BrenoMVAlves »

I am trying to build an OPC UA server with HTTPS based profiles, but I am getting the following status message:
There is no SSL binding assigned to the port used by HTTPS URL: https://mylocalhost:48031/

I am new to https communications with OPC UA and most of the tutorials ignores this experimental feature, can someone help me to understand how to programmaticaly create and assign a SSL certificate to the endpoints of my server application?

The UaDemoServer sample has this event called Application_MissingHttpsCerificate() with no implementation.

Code: Select all

       
        private static void Application_MissingHttpsCertificate(object sender, CreateHttpsCertificateEventArgs e)
        {
            try
            {
                // TBD
            }
            catch (Exception exception)
            {
                ExceptionDlg.Show("Missing Application Certificate", exception);
            }
        }
And the application configuration xml has this message:

Code: Select all

        Enabling this profile requires that you have a HTTPS certificate issued by a certificate authority
        in your root certificate store. You can creaste your own authority and add it to the root store or
        you can use authorities like VeriSign or Thawte. To do so, start the server with /install as Administrator.
        -->

        <BaseAddress>https://localhost:48031</BaseAddress>


I am using the UnifiedAutomation .NET SDK version 2.0.0.0.

Post Reply