Get expiration date from ID

Hi guys,

Someone know a way to get the expiration date in LS from the ID file ?

Thanks

Subject: Get expiration date from ID

not with LotusScript but take a look at @Certificate in designer help.

Subject: RE: Get expiration date from ID

Thanks for the diffrentes answer.

@Certificate is useful for Extracts information from the Certified Public Key in the Domino Directory not from the ID file.

I know that it will not easy but need really to get expiration date from the ID file. I will look to use the API. Thanks

Subject: Get expiration date from ID

You could get it through API calls:

STATUS LNPUBLIC SECKFMGetCertifierCtx(

char far *pCertFile,

KFM_PASSWORD far *pKfmPW,

char far *pLogFile,

TIMEDATE far *pExpDate,

char far *retCertName,

HCERTIFIER far *rethKfmCertCtx,

BOOL far *retfIsHierarchical,

WORD far *retwFileVersion);

But it is fairly complicated, and I strongly recommend that You instead setup to use the CertLog-feature of the server. Then the CertLog database will contain a simple NotesDocument with a field “ExpirationDate” that is easy to lookup.

hth