NetTalk Central

Author Topic: SSL issue  (Read 4052 times)

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
SSL issue
« on: April 20, 2015, 05:31:03 PM »
Client when trying to connect to my web service with SSL received this:
java.net.SocketException: Connection reset

                at java.net.SocketInputStream.read(SocketInputStream.java:168)

                at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)

                at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)


Is there any ide what kind of problem is this?

Without SSL no problem


Thank You

 


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: SSL issue
« Reply #1 on: April 21, 2015, 03:01:40 AM »
I have no idea what this means unfortunately.
Maybe they need to google for that Java error?

cheers
Bruce


ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: SSL issue
« Reply #2 on: April 21, 2015, 08:17:05 AM »
Bruce,
thank you for your reply,
maybe this error in FireFox tell us something:

"Unable to connect safely
Firefox can not guaranty the security of your data because it uses SSLv3 misitioweb.com.mx a broken security protocol.
Advanced information: ssl_error_unsupported_version"

My app. is developed with NetTalk 6,

Thank you in advance
cheers

rainerwallenius

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • Email
Re: SSL issue
« Reply #3 on: April 21, 2015, 10:20:11 AM »
Hi,

I changed the SSL-method from SSL3 (NET:SSLMethodSSLv3) to TLS (NET:SSLMethodTLSv1) and that solved a similar problem that You described. I think NET:SSLMethodTLSv1 is in NT6 too.

Look in netsimp.clw and netall.inc

Hope this might be helpful

:: rainer

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: SSL issue
« Reply #4 on: April 21, 2015, 10:31:14 AM »
thank you  Rainer,

effectively, this was the problem.

I will get NetTalk 8 to include NET:SSLMethodTLSv1_2

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: SSL issue
« Reply #5 on: April 22, 2015, 05:42:53 AM »
Hi Ramiro,

I will [need to] get NetTalk 8 to include NET:SSLMethodTLSv1_2 [?]

yes, NT6 only has support up to TLSv1. NT7 and NT8 has support for TLSv1.1 and TLSv1.2

cheers
Bruce

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: SSL issue
« Reply #6 on: April 22, 2015, 08:09:25 AM »
Hi Bruce,
Thank You.
already installed NetTalk 8 and now in the same application have this error in PageFooterTag Procedure:

Cannot call procedure as function - c:\c8\aplic\inhws\inhws\inhws003.clw:3558,44

packet = clip(packet) & p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"'& clip(p_web.site.LoginPage) &'","countdown");')

thank you

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: SSL issue
« Reply #7 on: April 22, 2015, 09:08:06 AM »
Hi Ramiro
Take a look at this
http://www.capesoft.com/docs/NetTalk8/NetTalk8Upgrade.htm#ChangesRequired
there is a specific section on changing the packet settings in code you have written when updating from 7 (or before) to 8
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: SSL issue dropped connection
« Reply #8 on: April 22, 2015, 10:11:27 AM »
Terry,
thank you.
above problem solved.
A new problem: an application called iHotelier tries to connect
my webservice but the connection is dropped, the client reports this message:

"iH Error: Unable to send outbound as HTTP message to https://reservacionesmision.com.mx:4443/ServicioReqResTC

 Reason is Connection reset"

Thanks in advance
Ramiro

 

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: SSL issue
« Reply #9 on: April 22, 2015, 04:27:52 PM »
the problem was solved by changing the protocol to TLSv1

Thank you