It may be worth trying forward slashes (solidus) inside of the key_store
and truststore arguments, e.g.:

amqp://guest:guest@
/development?brokerlist='tcp://localhost:15771?ssl='true'&key_store='C:/ssl/java_client_keystore.jks'&key_store_password='password'&trust_store='C:/ssl/java_client_truststore.jks'&key_store_password='password''

Windows has traditionally supported either slash at the system call level,
with only the windows command line tools requiring the use of back slash
(reverse solidus) on the command line.

I'm guessing that the error message is saying forward slashes not allowed
but is actually having trouble with the back slashes, since index 88, by my
count, is the "C" of key_store='C:/..., and there's no forward slash there.

Alternatively, since this looks like a URL, url quoting, rather than single
quotes, may be required to quote stuff.  By this I mean that troublesome
characters within the brokerlist argument get replaced by the percent sign
and character code as two hex digits notation.  The primary troublesome
characters visible in your example are ? and &, though this would also help
with the back slashes, so maybe:

amqp://guest:guest@
/development?brokerlist=tcp://localhost:15771%3Fssl=true%26key_store=C:%5Cssl%5Cjava_client_keystore.jks%26key_store_password=password%26trust_store=C:%5Cssl%5Cjava_client_truststore.jks%26key_store_password=password

Since this is actually a URL within a URL, you might possibly need to
further quote the back slashes as %255C (the %25 turns into % on the first
decoding, and the resulting %5C turns into back slash on the second
decoding.

Of course any funky characters in the passwords would have to be quoted.

And did you mean to specify key_store_password twice, or should the second
one be trust_store_password?

Bill


On Mon, Apr 15, 2013 at 4:29 AM, Kyle <[email protected]> wrote:

> Thank you Keith for your feedback and correction .
>
> When i tried to use broker list options, I got the exception as the bellow:
>
> Virtual host looks like a windows path, forward slash not allowed in URL at
> index 88:
> amqp://guest:guest@
> /development?brokerlist='tcp://localhost:15771?ssl='true'&key_store='C:\ssl\java_client_keystore.jks'&key_store_password='password'&trust_store='C:\ssl\java_client_truststore.jks'&key_store_password='password''
> [Root exception is Virtual host looks like a windows path, forward slash
> not
> allowed in URL between indicies 88 and -57
>
> amqp://guest:guest@/development?brokerlist='tcp://localhost:15771?
>
> ssl='true'&key_store='C:\ssl\java_client_keystore.jks'&key_store_password='password'&trust_store='C:\ssl\java_client_truststore.jks'&key_store_password='password''
>
>
> here is my properties file
>
> .....
>
> connectionfactory.qpidConnectionfactory =
> amqp://guest:guest@
> /development?brokerlist='tcp://localhost:15771?ssl='true'&key_store='C:\\ssl\\java_client_keystore.jks'&key_store_password='password'&trust_store='C:\\ssl\\java_client_truststore.jks'&key_store_password='password''
>
> .....
>
> Any help?
>
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/SSL-option-tp7591508p7591510.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to