Please provide the detail needed to help us help you.
How is your PostChannel configured?
Is a good place to start. If you have no SSL cofiguratiinnonnit, the check the Programmers Guide as what to add to your configuration.
--
Mark
--
Mark
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/660160f1-1018-45c1-a2a0-9276d446c80en%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/b6edfbcd-9463-4bcb-aedd-f4270c25d80cn%40googlegroups.com.
I am trying to establish a TLS connection with a TLS-enabled host. I followed Section 5.2 of the JPOS Programmer’s Guide, using GenericSSLSocketFactory.
However, I encounter the error message: "Unable to connect."
When I test the same endpoint using the command:
the TLS handshake completes successfully, and the connection is established.
Could you please advise what might be wrong with my JPOS client configuration?
Please always start a new thread instead of tacking a question on the end of an existing one.
Who or what is providing the Server you are connecting to on your local machine?
--
Mark
--
Mark
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/597ca818-23dd-4df0-9bd4-024cb33d0823n%40googlegroups.com.
P.s. Does the openssl command work if you use localhost instead of 127.0.0.1?
--
Mark
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/597ca818-23dd-4df0-9bd4-024cb33d0823n%40googlegroups.com.
Venon Mapfunde(PMP,Msc Software Engineering,Bsc Computer Science & Mathematics) Tel:+263 775 091 262 Email:taka...@gmail.com Skype: venon.mapfunde
I was highlighting thingsni. The client that did not match in the openssl command that might cause the issue. 🙂
So you know the server is listening and available.
What in you Clinet runtimenis blocking it. Where is the client running precisly, what is localhost from it's perspective.
Can I suggest you stick with me just for now, the code shared to help is adding more variables, where I think there is a very simple problem to solve.
--
Mark
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/a0cc3b01-83bd-4f69-8123-627ae8c8fac4n%40googlegroups.com.
The client is not able to hit the server's socket just yet.
I am hoping the OP shares *where* the Client is running - not directly on localhost is my bet.
--
Mark
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/CAPazefALP-qnk9hCNRd4P5gWGwPLVnMxPn5ymES-wQcGzgqf_Q%40mail.gmail.com.
Andrés Alcarraz
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/d8e5d06b-75c8-4167-b457-03f86aebd55dn%40googlegroups.com.
Then start by configuring the log in jpos, and please, don't share text as screenshots.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/132c07ed-5c49-41b6-9b63-4593679ce74an%40googlegroups.com.
That client 'clear' channel code is using port 8443 and the server is listening on 9000.
Please carefully check the ports in play on both sides when you have SSL on the Client side
--
Mark
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/0d823a2b-8a5c-48e3-befa-4ada85364a31n%40googlegroups.com.
Why is it still using port 8443.
Time to stop and very carefully check what you are doing.
Start a new thread *if* you need help once you have checked everything and pose a smart question.
--
Mark
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/426b8cb3-853f-44fb-9eac-a167405cc1d6n%40googlegroups.com.
java ^
-Djavax.net.ssl.keyStore="C:\projects\BCEL\jpos-vpa-ssl-client\client.p12" ^
-Djavax.net.ssl.keyStorePassword="changeit" ^
-Djavax.net.ssl.keyStoreType="PKCS12" ^
-Djavax.net.ssl.trustStore="C:\projects\BCEL\jpos-vpa-ssl-client\client-truststore.p12" ^
-Djavax.net.ssl.trustStorePassword="changeit" ^
-Djavax.net.ssl.trustStoreType="PKCS12" ^
-Djavax.net.debug=ssl,handshake ^
JPOSSSLClient