#1 2015-01-29 11:46:37

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

secSSL how to connect ?

Hi AB today i wan't to add ssl to my service.

I set secSSL at TSQLHttpServer.Create and installed the certificates as described in your doku.

if i call http://xyz.com:5001/service/Default everything works as normal

if i call https://xyz.com:5001/service/Default not available comes out.

In the Logfile i see an Exception:

12:35:52    Exception    2           ECommunicationException ("TSQLHttpServer.Create: Impossible to register URL for service") at 0064B826  stack trace 00908015 005B769A 005B7E54 770F75A8 75A5338A 77EB9F72 77EB9F45

followed by

12:35:52    Error    2           TSQLHttpServer(010DDA00) {"ECommunicationException(02356FE0)":{}} for {"THttpApiServer(010B2EC0)":{"Cloned":false,"RegisteredUrl":"","HTTPQueueLength":1000,"MaxBandwidth":-1,"MaxConnections":-1,"APIVersion":"HTTP API 2.0"}} at service k... w... B... b... J... e... g... stack trace API 00536B4D 0064BBB9 00908015 005B769A 770F75A8 75A5338A 77EB9F72 77EB9F45

when i try to connect with https i get this Exceptions:

12:37:49    Exception    5     ECrtSocket ("SockRecvLn 10060 (Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat)") at 0064566B  stack trace 00647A54 00647953 004C951C 0040B276 75A5338A 77EB9F72 77EB9F45

Do you have an idea what may be wrong ?


Rad Studio 12.1 Santorini

Offline

#2 2015-01-29 12:27:48

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: secSSL how to connect ?

I found the Error but not the reason:

Http.AddUrlToUrlGroup results in Error 183 - ERROR_ALREADY_EXISTS what does this mean ?


Rad Studio 12.1 Santorini

Offline

#3 2015-01-29 12:53:06

aivanov
Member
Registered: 2014-06-30
Posts: 6

Re: secSSL how to connect ?

Sorry, just a quick answer because I was puzzled by a similar problem right now. Did you run the server exe in adminstrator mode (Windows)?

If this does not apply, please forgive me.

Albert

Offline

#4 2015-01-29 12:55:56

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: secSSL how to connect ?

Yes i run it as Administrator.

I just testet it on my Develop Computer with localhost to debug - also as Administrator.
Same Error

Last edited by itSDS (2015-01-29 12:56:18)


Rad Studio 12.1 Santorini

Offline

#5 2015-01-29 13:29:02

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: secSSL how to connect ?

I found the Error but not the reason:
Http.AddUrlToUrlGroup results in Error 183 - ERROR_ALREADY_EXISTS what does this mean ?

That mean that your URL is already registered, probably with "http://...", you can see the registered URL with:

netsh http show urlacl

and you can delete the url with:

netsh http delete urlacl http://host:port/[URI]

The [URI] is when the URL have an URI.

I hope it has been helpful.


Esteban

Offline

#6 2015-01-29 13:56:44

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: secSSL how to connect ?

ty emartin i listet all url and on http://+:5001/service there is an reservation allthough no service is running on that url

may be it was not freed terminating the service in the Debugger. Or by exception.

I'll try to delete them all an try ssl again.

Last edited by itSDS (2015-01-29 13:56:58)


Rad Studio 12.1 Santorini

Offline

#7 2015-01-29 13:57:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: secSSL how to connect ?

Try another port.

Offline

#8 2015-01-29 14:15:00

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: secSSL how to connect ?

NOW IT WORKS

i had to remove the "deprecated" URL Reservations with netsh and now it works.
@AB Another Port may have also helped - But it's only a workaround

I think you should add this to your doku cause i couldn't find the solution by myself.
Or is there a possibility to add a "force" parameter to httpserver.Create to remove or take deprecated reservations ?


Rad Studio 12.1 Santorini

Offline

#9 2015-01-29 14:42:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: secSSL how to connect ?

I tried to add the info to the documentation.
See http://synopse.info/files/html/Synopse% … #TITLE_245

Offline

Board footer

Powered by FluxBB