Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-311

Stomp SSL: No certificates loaded from key-store

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • ActiveMQ, Stomp
    • None
    • Windows

    Description

      Not using the transport option clientCertFilename the certificates should be loaded from X509Store at class Apache.NMS.Stomp.Transport.Tcp.SslTransport method LoadCertificates.
      But the collection store.Certificates is always empty, causing SelectLocalCertificate to always returning null.
      This is not a big problem, because the connection is working using null. But maybe with an unexpected behavior if one is going to use the clientCertSubject transport option.

      The reason is, the store must be opened (and closed):
      Changing the lines in LoadCertificates to:

      X509Store store = new X509Store(name, location);
      store.Open(OpenFlags.ReadOnly);
      collection = store.Certificates;
      store.Close();

      the collection is not empty anymore.

      Attachments

        1. example_app.cs
          3 kB
          Markus Jung | Ogitix

        Activity

          People

            tabish Timothy A. Bish
            markus.ogitix Markus Jung | Ogitix
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: