Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: Unable to connect with C# to Homeworks processor with certificates

  1. #1

    Unable to connect with C# to Homeworks processor with certificates

    I'm trying to connect to Homeworks processor using a C# program in .NET Framework:

    X509Certificate2Collection certificates = new X509Certificate2Collection();
    string serverName = "IP OF THE PROCESSOR";

    // ADD THE PFX CERTIFICATE

    certificates.Add(new X509Certificate2(_certPath, "PASSWORD", X509KeyStorageFlags.DefaultKeySet));

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
    ServicePointManager.ServerCertificateValidationCal lback = RemoteCertificateValidationCallback;


    _client = new TcpClient(_ip, _port);
    _sslStream = new SslStream(_client.GetStream(), true, RemoteCertificateValidationCallback, LocalCertificateSelectionCallback);


    _sslStream.AuthenticateAsClient(serverName, certificates, SslProtocols.Tls12, false);


    The AuthenticateAsClient function return the "Unknown error during certificate elaboration" and I don't know what I'm doing wrong. Using authentication with username and password the connection works.
    The error is generic and I don't understand what can be the error.

    The same certificates used to produce the pfx work with openssl connection.

    Does anyone have a suggestion?

    Thanks in advance

  2. #2
    Senior Member
    Join Date
    Oct 2013
    Posts
    2,432
    support@lutron.com. Not trying to be snarky but that is your best bet.
    Convergence Technologies Raleigh, North Carolina
    www.convergenceusa.com

Similar Threads

  1. Unable to create scenes on Connect
    By misha.seattle in forum Troubleshooting - RA2
    Replies: 8
    Last Post: 03-29-2020, 07:24 PM
  2. Help - unable to connect via app or web
    By sizelove in forum Troubleshooting - RA2
    Replies: 5
    Last Post: 06-19-2017, 05:10 PM
  3. Can you purchase Engraving Certificates by themselves?
    By joshg in forum General Discussion - RA2
    Replies: 5
    Last Post: 02-04-2016, 02:44 PM
  4. unable to communicate with the processor
    By adrian1 in forum Troubleshooting - HWQS
    Replies: 1
    Last Post: 12-01-2015, 01:15 PM
  5. Unable to communicate with processor
    By zrob_12 in forum Troubleshooting - HWQS
    Replies: 5
    Last Post: 07-17-2015, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •