Код:
#include <Array.au3>
#include <Date.au3>
Global $oCertStore = ObjCreate('CAPICOM.Store')
$oCertStore.Open(1, 'Root' , 0) ;Change 'Root' to 'my' for user's local machine store
Global $oCerts = $oCertStore.Certificates
Global $aCerts[$oCerts.Count + 1][7] = [[$oCerts.Count, 'IssuerName', 'SerialNumber', 'SubjectName', 'Version', 'ValidFromDate', 'ValidToDate']]
Global $iC = 1
For $oCert In $oCerts
$aCerts[$iC][1] = $oCert.IssuerName
$aCerts[$iC][2] = $oCert.SerialNumber
$aCerts[$iC][3] = $oCert.SubjectName
$aCerts[$iC][4] = $oCert.Version
$aCerts[$iC][5] = _DateFormat($oCert.ValidFromDate)
$aCerts[$iC][6] = _DateFormat($oCert.ValidToDate)
$iC += 1
Next
_ArrayDisplay($aCerts)
Func _DateFormat($sDate)
Local $aDate = StringRegExp($sDate, '(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)', 3)
If UBound($aDate) < 6 Then
Return SetError(1, 0, $sDate)
EndIf
Return StringFormat('%02i/%02i/%04i %02i:%02i:%02i', $aDate[2], $aDate[1], $aDate[0], $aDate[3], $aDate[4], $aDate[5])
EndFunc
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx