Hi, Jef
Thank you for your reply.
I have your way to install certificate to my local PC but it doesn't work.
Maybe as my PC is Windows and need additional configurations.
But I get another way to load certificate, to set the parameter in brokerUri,
as following shows, it works.
|
string brokerUri = "ssl://192.168.108.6:61617"
+ "?transport.acceptInvalidBrokerCert=true"
+ "&transport.clientCertFilename=client.p12"
+ "&transport.clientCertPassword=123456";
|
By the way, just out of curiosity, why you use NMS.AMQP instead of ActiveMQ. Is
NMS.AMQP is better choice ?
Thank you very much. Enjoy a good day.
At 2024-08-30 17:18:06, "Willems Jef" <[email protected]> wrote:
>Hi there,
>
>I believe you should just install the certificate on your server of choice. We
>use docker, and just load the certificate into /etc/certificates, and ssl just
>works. We do use the NMS.AMQP package, and not the activemq one.
>
>-----Original Message-----
>From: NuGet Gallery <[email protected]>
>Sent: Friday, August 30, 2024 10:18 AM
>To: [email protected]; [email protected]; [email protected];
>[email protected]; [email protected]
>Subject: [NuGet Gallery] Message for owners of the package
>'Apache.NMS.ActiveMQ'
>
>User Maxwellzx <[email protected]> sends the following message to
>the owners of Package 'Apache.NMS.ActiveMQ 2.1.0
>(https://www.nuget.org/packages/Apache.NMS.ActiveMQ/2.1.0)'.
>
>Hello,
>
>Sorry to take up your time to read my email.Thank you very much!
>I am an software engineer. I try to use Apache.NMS.ActiveMQ to connect
>ActiveMQ. When I use tcp connection, it works. But when I use ssl, I find no
>function to load client certificate and also find no function to callback to
>validate remote certificate. So I use
>ServicePointManager.ServerCertificateValidationCallback, but it also not be
>called. Could you give me some support or some example to connect ActiveMQ
>using SSL?
>
>-----------------------------------------------
> To stop receiving contact emails as an owner of this package, sign in to
> the NuGet Gallery and
> change your email notification settings (https://www.nuget.org/account).
>
>Privacy Statement (https://go.microsoft.com/fwlink/?LinkId=521839)
>Microsoft Corporation
>One Microsoft Way
>Redmond, WA 98052 USA