NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bruce

Pages: [1] 2 3 ... 741
1
Web Server - Ask For Help / Re: Error in template - I guess
« on: January 08, 2025, 09:20:53 PM »
fixed for 14.29

2
Web Server - Ask For Help / Re: Default Security
« on: January 08, 2025, 09:18:10 PM »
fixed for 14.29

3
check your default printer for the service account, or change your program service registration to user the user account, not the service account.

4
Web Server - Ask For Help / Re: 2 way certificate authentication
« on: December 20, 2024, 06:28:27 PM »
>> What I also wanted to ask is how I can do the get from a netwebservice method?

you make an automatic Window procedure, and call it from your NetWebServiceMethod server code at the appropriate time.
See the NetTalk WebServer Email example that follows the same pattern - albeit with a NetEmail object, whereas you will use a NetWebClient object.

The NetWebClient method can use a private key, if that's a thing the other server requires of you.

Cheers
Bruce

5
Web Server - Ask For Help / Re: Sending mail using Postmark API
« on: December 20, 2024, 06:24:23 PM »
cid: is just a prefix to source names in the HTML which mean "find this in the attachment list".
so, for example;
<img src="c:\images\a.png"> becomes
<img src="cid:a.png">
and a.png is added as an attachment.

As you note the NetEmail class has methods to do this for you. But it's not hard for you to do it yourself.

Cheers
Bruce

6
Web Server - Ask For Help / Re: Filter error on compile
« on: December 17, 2024, 09:38:25 PM »
You have an item in the Conditional Filter settings for the browse. But without a filter set.
Set the filter, or remove the item.

Cheers
Bruce

7
Web Server - Ask For Help / Re: 2 way certificate authentication
« on: December 13, 2024, 07:15:48 PM »
Hi Joep,

I think you need to define what you mean by "webservice".

Are you a SERVER? or a CLIENT?
Or both? (ie you are a server, but now your server is needing to be a client to another API as well?)

Cheers
Bruce

8
Web Server - Ask For Help / Re: 2 way certificate authentication
« on: December 11, 2024, 08:09:19 PM »
Hi Joep,

as long as you are accessing the client over HTTPS - whether you are the server or the client - you don't need to manually worry about the encryption - that is done for you by the TLS layer.

Also you don't need to move certificates between you, or him, or whatever. That is handled for you by the TLS layer.
When you browse the web, and you go to say Amazon.com, you don't need to do anything - it's all done for you.
You set up the certifiacte on the server, and that's all you need.

With that in mind, I turn to the title of this thread though...

>> Re: 2 way certificate authentication

What do you mean by this, and why did you pick this phrase?

>> The Api Gateway is in fact also a webservice at the client.

so, to be clear, you are making a *client* request to his server? You will use the NetWebClient class?
And (as Jane suggests) the server you are talking to requires you as the client to pass it a client-side certificate?

Are we getting closer to understanding?

Cheers
Bruce



9
E-Mail - Ask For Help / Re: Probleme connect to a special SMTP Server
« on: December 11, 2024, 08:03:38 PM »
This has been fixed in current NetTalk builds, so my recommendation is to update from NetTalk 11.

cheers
Bruce

10
Web Server - Ask For Help / Re: 2 way certificate authentication
« on: December 11, 2024, 04:05:55 AM »
Hi Joep,

>> My Nettalk version = 11.45

ok, that's pretty old, but I'll try and answer usefully :)

>> And when I say Public key I mean my Cert file.

ok, so you're a server right?
By "cert" file you mean a CRT file?
I'm not sure what you mean by "giving that to them"...
That's not a thing - as in I've never needed to give a CRT file to anyone..
(which probably explains why I'm completely lost here...)

>> So I have a webservice which has to communicate with an Api Gateway.

What's an API gateway? And you'd communicate with that to do what? Are you making API requests of your own? To some other server?

>> The administrator of the gateway asked me for the Csr file.
>> He said he would sign it and sended me this p7b ,based on the csr, file back for my use.

Ok, so I guess you need to be a lot more explicit as to what an API Gateway is, what it's doing, what it needs and so on.
I can't really give you advice because I guess I'm not sure what an API gateway is, why you need to communicate with it, or what it needs...

You may need to fill in a lot more detail mate - sorry.

Cheers
Bruce


11
Web Server - Ask For Help / Re: 2 way certificate authentication
« on: December 10, 2024, 06:27:03 AM »
Hi Joep,

I think we need more detail here.
You're making an API server? based on the NetWebServer stuff?

Which build of NetTalk are you using?

>> Normally I create a self signed certificate with openssl and give the other party my public key.

I'm not sure what you mean by "give the other party my public key". That's not normally something that needs to be done...

>> The other party asked me for the CSR file

why? (I feel like there are details in here you've not made clear yet...)
Who is the "other party"? The client program?
What do they need your CSR for?

>> and signed this file to  Afile.p7b But I don't know how and where I should install or embed it.

Me neither. I have literally no idea what you're doing here.... Building a Web API server requires, well, none of this stuff...

Cheers
Bruce


12
Web Server - Ask For Help / Re: Browse filtering using timestamp field
« on: December 08, 2024, 08:43:43 PM »
The key point to understand is that the filter is just a string, which is then passed to the backend.
Since p_web is an object, it has no meaning in a string.
So p_web.UTCDate isn't text that should be in the end filter.

Rei:Timestamp        Real
The filter is : 'p_web.UnixToClarionDate(Rei:Timestamp/1000)=' & Today()

I would turn this around;
'Rei:Timestamp >= ' & p_web.ClarionToUnixDate(today(),0) * 1000 & ' AND Rei:Timestamp <= ' & (p_web.ClarionToUnixDate(today()+1,0) * 1000 ) - 1

13
Web Server - Ask For Help / Re: Cookie handling
« on: December 04, 2024, 07:30:07 PM »
you are getting the value names wrong. Try

    p_web.trace('IndexPage SessionId: ' & p_web.SessionID)
    p_web.trace('LoginForm GetValue Loc:Login: ' & p_web.GetValue('loc:login')) 
    p_web.trace('LoginForm GetValue Loc:password: ' & p_web.GetValue('loc:password'))


14
Web Server - Ask For Help / Re: Cookie handling
« on: December 03, 2024, 09:00:24 PM »
>>  p_web.GetCookie('MAGWEBUSERLOGGEDIN')

In the server, you don't read cookies using the GetCookie method. That's inherited from the web client.
Rather use

 p_web.GetValue('MAGWEBUSERLOGGEDIN')

15
Web Server - Ask For Help / Re: Cookie handling
« on: December 02, 2024, 08:06:01 PM »
>> Unfortunately, if I start a new window of the browser and read at the beginning of my indexpage i don't get the UserId by the command

If you look at the web server log, ie your WebServer window, and you look at the incoming request, do you see the Cookie included in there?
If not I'm guessing you set a memory cookie, not a disk cookie.

(As an aside, this would be a pretty big security hole - so you might want to think a bit about this feature. Let's say the user was using a public machine , closed the browser, walked away. Using you system another person could access the site some minutes later, and they would be logged in as the previous user.)

Cheers
Bruce

Pages: [1] 2 3 ... 741