B4J Question [SERVER] SSL Connection

T201016

Active Member
Licensed User
Longtime User
Hi,
When using an SSL connection, I get an error when compiling:


The Keystore key is correctly formed according to the tutorial.
I changed the rdc link to start with https: //

I have a well-configured server,
then this could be because I am trying to use a self-signed certificate?

Browser shows error message:
A secure connection could not be established. An error occurred while connecting to server '127.0.0.1:17178'.
SSL received a record that exceeded the maximum length allowed.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page being opened cannot be displayed because the authenticity of the received data could not be verified.

thank you so much for help.
 

T201016

Active Member
Licensed User
Longtime User
Hello Erel
Thanks a lot for the helpful hint! Of course, I will check how many of these instances have multiplied ...
I wish you a good day
 
Upvote 0

T201016

Active Member
Licensed User
Longtime User

I corrected the previous problem according to your suggestion,
but it throws me another error regarding the keystore key.
I used version jre1.8.0_251 to create it, maybe this
must one look for fault in it?


1.Created the key using the method:
2. zainicjowałem w kodzie B4J Souce code:
ssl.SetKeyStorePath(File.DirAssets, "mykeystore.keystore") 'path to keystore file
ssl.KeyStorePassword = "123456"
ssl.KeyManagerPassword = "123456"

Any other hints?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…