Hi
I am trying to update the $Signature on a policy document (names.nsf) with the sign id of the agent.
The code to do this is :
Call Poldoc.Sign
Call Poldoc.Save( False, True )
This code is in an agent which i start from the server console.
Result of this is that the $Signature contains the name of the server from where i start the agent. The modifier of the policy document
is the sign id.
Does anyone have any idea why the $Signature keeps getting the
server name and not the name of the modifier of the document?
Subject: Signing Policy document through lotusscript
An electronic signature is always generated using the private key of the current id file that the Notes APIs were initialized with on the machine where it’s running. For an agent running on the server, the current id file is always the server’s id file. If you need to generate a user’s signature, the code has to run in a separate process that has access to the user’s id file and password - which generally means that it’s got to run on a client.
-rich
Subject: RE: Signing Policy document through lotusscript
Hi Rich
Thank you for the response. If i keep using the agent to sign the Policy document is it still signed correctly even though the $Signature field has the servers private key?
I use the correct method ( doc.Sign) to sign documents.
Regards
Subject: RE: Signing Policy document through lotusscript
Yes. By “correctly” I mean that a client can verify that the signature was applied by the server.
-rich