NetTalk Central

Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Web Server - Ask For Help / Re: Error in template - I guess
« Last post by Bruce on January 08, 2025, 09:20:53 PM »
fixed for 14.29
42
Web Server - Ask For Help / Re: Default Security
« Last post by Bruce on January 08, 2025, 09:18:10 PM »
fixed for 14.29
43
Web Server - Ask For Help / Re: 2 way certificate authentication
« Last post by Jane on January 08, 2025, 03:10:58 PM »
Thanks for the update, Joep,

Glad you got it working.  You didn't attach a picture, but then it's a *hidden* window ;)

As you've found, the key is to think of the client part as a client and the webserver part as a webserver.

Good job!
44
Web Server - Ask For Help / Re: 2 way certificate authentication
« Last post by joep on January 08, 2025, 01:32:43 AM »
Hi Bruce and Jane

I have got it working

My webservice has my own self signed certificate in place.
So I can receive the Json notification from the customer API

ThisWebserver.SSL = 1 ! Use SSL to make a Secure Web Server
ThisWebserver.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
ThisWebserver.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
ThisWebserver.SSLCertificateOptions.CertificateFile = 'c:\webservice\certificates\deo.aag.nl.crt'
ThisWebserver.SSLCertificateOptions.PrivateKeyFile = 'c:\webservice\certificates\deo.aag.nl.key'
ThisWebserver.SSLCertificateOptions.ServerName = 'deo.aag.nl'
 
After receiving the notification, I had to send an ID to get the object information from the cutomer API.
So I had to use a client certificate aagweb-2025.pfx (signed by him) to authenticate myself to his API

With openssl I created a key and crt file out of the aagweb-2025.pfx :
openssl pkcs12 -in aagweb-2025.pfx -nocerts -out aagweb-2025.key
openssl pkcs12 -in aagweb-2025.pfx -clcerts -nokeys -out aagweb-2025.crt
openssl rsa -in aagweb-2025.key -out aagweb-2025-encrypted.key


To do so I created a seperate window which I call from the Netwebservice method zgw2aag (see picture)
The window has a NetWebClient class and doesn't show

NetWeb.SSL = 1
NetWeb.SSLCertificateOptions.CertificateFile = 'c:\webservice\certificates\aagweb-2025.crt'
NetWeb.SSLCertificateOptions.PrivateKeyFile = 'c:\webservice\certificates\aagweb-2025-encrypted.key'
NetWeb.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
NetWeb.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
 
! NetWeb.customheader = 'apikey: 04tf2345ff67gh2a95e12fake'   
NetWeb.Authorization = 'Token 04tf2345ff67gh2a95e12fake'   

NetWeb.Get(Glo:ObjUrl)

After this I can receive the Json  in the Packetreceived Embed

Thanks for all your suggestions
Joep
45
Web Server - Ask For Help / Re: Error in template - I guess
« Last post by Niels Larsen on January 06, 2025, 03:51:42 AM »
UP
46
Web Server - Ask For Help / Re: Default Security
« Last post by Niels Larsen on January 06, 2025, 03:51:22 AM »
UP
47
Web Server - Ask For Help / Re: Landscape Reports when running as a Service
« Last post by Bruce on January 01, 2025, 08:06:13 AM »
check your default printer for the service account, or change your program service registration to user the user account, not the service account.
48
Web Server - Ask For Help / Landscape Reports when running as a Service
« Last post by Richard I on December 30, 2024, 06:31:26 PM »
Hello,
When my app is run as a Service, the Reports display and print  in Landscape, which  reverses to Portrait   when the Service is stopped.
The Report Properties do not have the Landscape option selected.
How do I resolve this please?
Thanks
Richard
NT 14.28
SelfService 3.62
49
Web Server - Ask For Help / Re: Cannot load as a Service -wrong path to executable
« Last post by Richard I on December 29, 2024, 05:36:46 PM »
thanks Jane
Cheers
Richard
50
Web Server - Ask For Help / Re: Cannot load as a Service -wrong path to executable
« Last post by Jane on December 29, 2024, 03:26:04 PM »
It has nothing to do with recompiling.  When you ran the app with /IS the service information was created in the Registry.

If the wrong path is displaying on the Properties page in the services.msc app, easiest is to uninstall the service and reinstall it in the correct folder.

Or you could edit it in the Registry.



Pages: 1 ... 3 4 [5] 6 7 ... 10