Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7936343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:11:06+00:00 2026-06-03T22:11:06+00:00

I had posted a different question and now I’m editing it because I managed

  • 0

I had posted a different question and now I’m editing it because I managed to do what I was achieving at first. Using “How do I use SSL” I set up my ActiveMQ Broker accepting SSL connections and I was trying to implement a client to test the communication. I figured out that I could do this by setting the system properties:

static {
    System.setProperty("javax.net.ssl.keyStore", "/home/amq/SSL/client.ks");
    System.setProperty("javax.net.ssl.keyStorePassword", "password");
    System.setProperty("javax.net.ssl.trustStore", "/home/amq/SSL/client.ts");
}

The problems I was having were in the creation of the keystores/truststores and exporting the broker certificate. When I deleted the .ks and .ts files and re-did everything as explained in “How do I use SSL” it worked.

My new question is: How can I establish a connection without the need of creating a keystore for the client and importing the broker’s certificate?

I am looking for a way to accept any certificate that the broker sends me. In this link I found a way setting an URI option:

ssl://localhost:61617?transport.acceptInvalidBrokerCert=true

but it’s not working for me. From the moment I append “?transport.acceptInvalidBrokerCert=true” in my URI or URL string the method stops working, and I no longer can establish a connection.

Can anyone provide me with an example of a java or c++ client that connects to an ActiveMQ broker using SSL without importing the broker’s certificate, or in other words, accepting any invalid certificate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:11:07+00:00Added an answer on June 3, 2026 at 10:11 pm

    The URI flag you are referencing is only valid for .NET clients using NMS.ActiveMQ the C++ and Java clients don’t have this setting. There is a way in the C++ client to do this, you must set a system property as follows before creating the Connection.

    System::setProperty("decaf.net.ssl.disablePeerVerification", "true" );
    

    The easiest way to get the ssl certs working without these testing options is to create a root certificate and then create the broker cert with you root certificate and add the root certificate to the client’s trust store that way any broker with a cert signed by your root cert will be trusted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had posted a similar question earlier - a slightly different requirement here. I
I had posted one question earlier jQuery inconsistency in setting readonly attribute in IE-8
I had posted a question in regards to this code. I found that JTextArea
(This is technically an addendum to an earlier StackOverflow question I had posted, but
Hi I posted a question a little earlier and I had some replies that
So I thought I had fixed the problem posted in this question and I
I am using a C1ReportViewer control, and have already posted a question on the
I had posted this earlier on Stack Overflow, but couldn't get a positive result.
I posted another one on this,, but i had to edit it really much...
Had a problem with the recursive conflictCheck() method. That seems fine now. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.