Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: COM Active Directory AD ADSI Published Certificate Information Info x509 Published Expiration Date userCertificate CAPICOM.Certificate ValidToDate
Here is a very rough example demonstrating a COM Automation approach. No guarantees it will work for you.
; Get a user certificate using one of our test server VM. strUserPath = "LDAP://shamrock/CN=Bob Smith,CN=Users,DC=jclass,DC=org" ; Get the certificate from AD and write to a file. objUser = ObjectGet(strUserPath) aCert = objUser.Get("userCertificate") hCert = BinaryAllocArray(aCert) strFile = DirScript():"Temp.cer" BinaryWrite(hCert, strFile) BinaryFree(hCert) objUser = 0 ; Use Certificate API to get the expiry. objCapi = ObjectCreate("CAPICOM.Certificate") objCapi.Load(strFile) ToDate = objCapi.ValidToDate objCapi = 0 FileDelete(strFile) Message( "Certificate Valid to Date", ToDate )
Article ID: W17522
Filename: COM - Active Directory Published Certificates Info .txt
File Created: 2014:07:18:09:40:16
Last Updated: 2014:07:18:09:40:16