Jump to content

How to read infomation of file CER x509


Recommended Posts

  • Developers

What exactly do you want to do with this file?
Simply read the whole file into a variable? if so, then the helpfile is your friend and look for FileRead().

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

i know about FIleread()

but that only read text

I need read info later encode X509.

 

Like in this file is:

Common Name: CÔNG TY CỔ PHẦN ĐẦU TƯ XÂY DỰNG VÀ THƯƠNG MẠI VIỆT HÙNG
Subject Alternative Names: email:nguyenhieu1504@gmail.com
Locality: Ba Đình
State: Hà Nội
Country: VN
Valid From: June 20, 2015
Valid To: March 25, 2018
Issuer: BkavCA, Bkav Corporation
Serial Number: 54035a78f1c607c054ae87e91ebeca6f
Link to comment
Share on other sites

here will be good start (I hope)

#include <MsgBoxConstants.au3>


_Example()

Func _Example()
    ; Error monitoring. This will trap all COM errors while alive.
    ; This particular object is declared as local, meaning after the function returns it will not exist.
    Local $oErrorHandler = ObjEvent("AutoIt.Error", "_ErrFunc")

    Local $oCX509PrivateKey = ObjCreate("X509Enrollment.CX509PrivateKey.1")
    If @error Then MsgBox($MB_ICONERROR, '', _
            '@error = ' & @error & @CRLF & '@extended = ' & @extended)

    Local $oCX509CertificateRequestCertificate = ObjCreate("X509Enrollment.CX509CertificateRequestCertificate")
    If @error Then MsgBox($MB_ICONERROR, '', _
            '@error = ' & @error & @CRLF & '@extended = ' & @extended)

    Local $oCSP1 = $oCX509CertificateRequestCertificate.Initialize(1)
    Local $oCSP_Coll = $oCX509CertificateRequestCertificate.CspInformations
    Local $oCSP_Unizeto = Null

    For $oCSP_enum In $oCSP_Coll
;~      ConsoleWrite('$oCX509CertificateRequestCertificate.IsSmartCard=' & $oCX509CertificateRequestCertificate.IsSmartCard & @CRLF)
        ConsoleWrite('$oCSP_enum.Name=' & $oCSP_enum.Name & @CRLF)
        ConsoleWrite('$oCSP_enum.Type=' & $oCSP_enum.Type & @CRLF)
        If $oCSP_enum.Name = 'cryptoCertum3 CSP - profil bezpieczny' Then
            $oCSP_Unizeto = $oCSP_enum
        EndIf
        ConsoleWrite('$oCSP_enum.IsSmartCard=' & $oCSP_enum.IsSmartCard & @CRLF)
        ConsoleWrite('$oCSP_enum.IsSoftwareDevice=' & $oCSP_enum.IsSoftwareDevice & @CRLF)
        ConsoleWrite('$oCSP_enum.KeySpec=' & $oCSP_enum.KeySpec & @CRLF)
        ConsoleWrite('$oCSP_enum.LegacyCsp=' & $oCSP_enum.LegacyCsp & @CRLF)
        ConsoleWrite('$oCSP_enum.Valid=' & $oCSP_enum.Valid & @CRLF)
        ConsoleWrite('$oCSP_enum.Version=' & $oCSP_enum.Version & @CRLF)
        ConsoleWrite('' & @CRLF)

    Next
;~  If @error Then MsgBox($MB_ICONERROR, '', _
            '@error = ' & @error & @CRLF & '@extended = ' & @extended)

    $oCSP_Unizeto.InitializeFromName('cryptoCertum3 CSP - profil bezpieczny')

    $oCX509PrivateKey.CspInformations = $oCSP_Coll

;~  $oCX509PrivateKey.CspInformations
    $oCX509PrivateKey.Silent = False
    $oCX509PrivateKey.ProviderName = 'cryptoCertum3 CSP - profil bezpieczny'
    $oCX509PrivateKey.ProviderType = 1
    MsgBox(0, '', $oCX509PrivateKey.SecurityDescriptor)
    $oCX509PrivateKey.Open()
;~  ConsoleWrite('$oCX509PrivateKey.CspStatus=' & $oCX509PrivateKey.CspStatus & @CRLF)
;~  ConsoleWrite('$oCX509PrivateKey.UniqueContainerName=' & $oCX509PrivateKey.UniqueContainerName & @CRLF)
;~  ConsoleWrite('$oCX509PrivateKey.UIContextMessage=' & $oCX509PrivateKey.UIContextMessage & @CRLF)
    ConsoleWrite('$oCX509PrivateKey.MachineContext=' & $oCX509PrivateKey.MachineContext & @CRLF)
;~  MsgBox(0, '', $oCX509PrivateKey.ReaderName)
;~  MsgBox(0, '', $oCX509PrivateKey.ProviderType)
;~  MsgBox(0, '', $oCX509PrivateKey.ProviderName)
;~  MsgBox(0, '', $oCX509PrivateKey.FriendlyName)
    ConsoleWrite('$oCX509PrivateKey.DefaultContainer=' & $oCX509PrivateKey.DefaultContainer & @CRLF)
    ConsoleWrite('$oCX509PrivateKey.Opened=' & $oCX509PrivateKey.Opened & @CRLF)


EndFunc    ;==>_Example



; User's COM error function. Will be called if COM error occurs
Func _ErrFunc($oError)
    ; Do anything here.
    ConsoleWrite(@ScriptName & " (" & $oError.scriptline & ") : ==> COM Error intercepted !" & @CRLF & _
            @TAB & "err.number is: " & @TAB & @TAB & "0x" & Hex($oError.number) & @CRLF & _
            @TAB & "err.windescription:" & @TAB & $oError.windescription & @CRLF & _
            @TAB & "err.description is: " & @TAB & $oError.description & @CRLF & _
            @TAB & "err.source is: " & @TAB & @TAB & $oError.source & @CRLF & _
            @TAB & "err.helpfile is: " & @TAB & $oError.helpfile & @CRLF & _
            @TAB & "err.helpcontext is: " & @TAB & $oError.helpcontext & @CRLF & _
            @TAB & "err.lastdllerror is: " & @TAB & $oError.lastdllerror & @CRLF & _
            @TAB & "err.scriptline is: " & @TAB & $oError.scriptline & @CRLF & _
            @TAB & "err.retcode is: " & @TAB & "0x" & Hex($oError.retcode) & @CRLF & @CRLF)
EndFunc    ;==>_ErrFunc


#Region  HOW TO , GUID, DOC

#cs
    http://blogs.technet.com/b/vishalagarwal/archive/2009/08/22/generating-a-certificate-self-signed-using-powershell-and-certenroll-interfaces.aspx

    Security Descriptor String Format
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa379570(v=vs.85).aspx

    ACE Strings
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa374928(v=vs.85).aspx

    How to create a certificate request with CertEnroll (JavaScript)
    https://blogs.msdn.microsoft.com/alejacma/2009/01/28/how-to-create-a-certificate-request-with-certenroll-javascript/
#CE

#EndRegion   HOW TO , GUID, DOC

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

19 minutes ago, tungpheng said:

i know about FIleread() but that only read text

I need read info later encode X509.

Do you have file signed with using one of this standard: XADES / CADES / PADES ?
Or you have file in pkcs format ?

EDIT:
Try to look also here:

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

40 minutes ago, mLipok said:

Do you have file signed with using one of this standard: XADES / CADES / PADES ?
Or you have file in pkcs format ?

EDIT:
Try to look also here:

 

I have file signed

I took file cer in there.

now how i can read that file from code you posted.

Sorry i just to learn code so I'm so nub. but your code upside is read cert have in system?

 

Link to comment
Share on other sites

So as I understand there was a "source" file, which was signed by somebody.
You have ..... this signed file.

But do you have "source" file encapsulated/embended into signed file, or you have separate "source" file and signing file.

What extension have signed file and what extension should have "source" file ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

https://www.sslshopper.com/certificate-decoder.html like this website do that

I want read cert like that. but use autoit. that is text in file cer. i used base64 decode but not have full info i want.

MIIEWTCCA0GgAwIBAgIQVANaePHGB8BUrofpHr7KbzANBgkqhkiG9w0BAQUFADBJMQswCQYDVQQG
EwJWTjEOMAwGA1UEBxMFSGFub2kxGTAXBgNVBAoTEEJrYXYgQ29ycG9yYXRpb24xDzANBgNVBAMT
BkJrYXZDQTAeFw0xNTA2MjEwNjI5MTNaFw0xODAzMjYwNjI5MTNaMIGrMR4wHAYKCZImiZPyLGQB
AQwOTVNUOjAxMDIyMzk5NjgxVDBSBgNVBAMMS0PDlE5HIFRZIEPhu5QgUEjhuqZOIMSQ4bqmVSBU
xq8gWMOCWSBE4buwTkcgVsOAIFRIxq/GoE5HIE3huqBJIFZJ4buGVCBIw5lORzESMBAGA1UEBwwJ
QmEgxJDDrG5oMRIwEAYDVQQIDAlIw6AgTuG7mWkxCzAJBgNVBAYTAlZOMIGfMA0GCSqGSIb3DQEB
AQUAA4GNADCBiQKBgQCmQlP+XYZVQ4efPU758Vjge+lVjHWnkarHUj63mqpqouxodgOOp83S0IdX
pDwM/s2zUvyGB1AVwdmk/P6Y3D7X6VrY+xUHP41uQH7msoJOSIl+7Vn0+LTLdANrKOCUlJqfqjh+
jmzZgRsR/pMjekzkOsJYjp7lGjzvx1ZQnkJbGwIDAQABo4IBXDCCAVgwMQYIKwYBBQUHAQEEJTAj
MCEGCCsGAQUFBzABhhVodHRwOi8vb2NzcC5ia2F2Y2Eudm4wHQYDVR0OBBYEFC1QOsT9PLjmb6Zu
uImN5QwYUNltMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUHrAPSJff0MNnp0aEO1g7iA1TlIYw
fwYDVR0fBHgwdjB0oCOgIYYfaHR0cDovL2NybC5ia2F2Y2Eudm4vQmthdkNBLmNybKJNpEswSTEP
MA0GA1UEAwwGQmthdkNBMRkwFwYDVQQKDBBCa2F2IENvcnBvcmF0aW9uMQ4wDAYDVQQHDAVIYW5v
aTELMAkGA1UEBhMCVk4wDgYDVR0PAQH/BAQDAgeAMB8GA1UdJQQYMBYGCCsGAQUFBwMEBgorBgEE
AYI3CgMMMCMGA1UdEQQcMBqBGG5ndXllbmhpZXUxNTA0QGdtYWlsLmNvbTANBgkqhkiG9w0BAQUF
AAOCAQEAGuUPOcLXWP/AkRtF79kvTBBkk58JrqVdE9CrwUFYJcYEmRoZSkLXtc3TdcoF/SXxyiDN
xRiidaG+khmuFgJNH1B9EQmhFQC1Hc+WnB/9T4+OkGiTaq/AId3Syp8KXjqBreG0maaoCjXj91QK
ZpPA8MktkYcc26/m10Trs6zt8UY4V2ckllvt6jSuj7gYyW50NuBsjFklrYjD8969Pl2NUyJvUJTj
FTys8GcvKtssfi/ydrjQIHc3lzwG9hKusDVwgPWbJWL4+ZBc4NE6SnSOJ8oTf/BPtEeO3l/WTSgt
XsuQyMin+95kVkaRLrrRP5LWo+B4SWU5rBZ+zEgX61v3jg==

 

Link to comment
Share on other sites

2 minutes ago, mLipok said:

So as I understand there was a "source" file, which was signed by somebody.
You have ..... this signed file.

But do you have "source" file encapsulated/embended into signed file, or you have separate "source" file and signing file.

What extension have signed file and what extension should have "source" file ?

 

that file I attached.

you can see have node <X509Certificate> .....</X509Certificate>

text in this side is file cer I want to read info.

you can copy that to notepad and change name to .cer can open and read infor by eyes but I dont know how to read by autoIT.

0100100008.xml

Link to comment
Share on other sites

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

aha...
Now I know what you are searching.
Try also here:

https://redkestrel.co.uk/products/decoder/

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

I solve your problem .... partialy, I must change my UDF to show entire solution.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

 

 

 

Func _CertUtil_Example_Dump()
    Local $sFile1 = 'C:\1\cert.txt'
    Local $sFile2 = 'C:\1\cert2.cer'

    Local $sXML_File = FileOpenDialog('Choose XML File', @ScriptDir, 'XML Files (*.xml)')
    If @error Then Return SetError(@error, @extended, 0)

    ConsoleWrite("! $sXML_File = " & $sXML_File & @CRLF)
    Local $hFile = FileOpen($sXML_File, $FO_READ + $FO_UTF8_NOBOM)
    Local $sFileContent = FileRead($hFile)
    FileClose($hFile)

    Local $aX509Certificate = _StringBetween($sFileContent, '<X509Certificate>', '</X509Certificate>')
    If @error Then MsgBox($MB_ICONERROR, '_StringBetween', '@error = ' & @error & @CRLF & '@extended = ' & @extended)

    Local $sX509Certificate = $aX509Certificate[0]

    Local $hFile = FileOpen($sFile1, $FO_OVERWRITE + $FO_CREATEPATH + $FO_BINARY )
    FileWrite($hFile, '-----BEGIN CERTIFICATE-----' & @CRLF & $sX509Certificate & @CRLF & '-----END CERTIFICATE-----')
    FileClose($hFile)

    _CertUtil_ConvertToBinary($sFile1, $sFile2)
    If @error Then MsgBox($MB_ICONERROR, '_CertUtil_ConvertToBinary', '@error = ' & @error & @CRLF & '@extended = ' & @extended)

    Local $sResult = _CertUtil_Dump($sFile2)
    If @error Then MsgBox($MB_ICONERROR, '_CertUtil_Dump', '@error = ' & @error & @CRLF & '@extended = ' & @extended)

    MsgBox(0, '$sResult', $sResult)

    ClipPut($sResult)

EndFunc   ;==>_Example

Result:

Spoiler


Quote

Stdout Read:
X509 Certificate:
Version: 3
Serial Number: 540190b01b58c599f0b3803d2dbaef85
Signature Algorithm:
    Algorithm ObjectId: 1.2.840.113549.1.1.5 sha1RSA
    Algorithm Parameters:
    05 00
Issuer:
    CN=VNPT Certification Authority
    OU=VNPT-CA Trust Network
    O=VNPT Group
    C=VN
  Name Hash(sha1): 04b8a6e8a6d55f059bf33bbfb89d841cbbd23e49
  Name Hash(md5): d58d26c4cd537e134e1edade1f48e7c1

 NotBefore: 30.05.2014 11:43
 NotAfter: 28.07.2018 11:28

Subject:
    OID.0.9.2342.19200300.100.1.1=MST:0100100008
    CN=T?P ĐOAN D?T MAY VI?T NAM
    L=Hoan Ki?m
    S=Ha N?i
    C=VN
  Name Hash(sha1): fcd40cb23ef07dd16e3e44a666d5d152946c9c66
  Name Hash(md5): f7caf0708534f85ca7114dafeedae470

Public Key Algorithm:
    Algorithm ObjectId: 1.2.840.113549.1.1.1 RSA
    Algorithm Parameters:
    05 00
Public Key Length: 1024 bits
Public Key: UnusedBits = 0
    0000  30 81 89 02 81 81 00 de  4d 4f 02 52 c7 94 a2 93
    0010  05 c4 84 4f 04 c8 4b 00  d5 0b 52 8e cd e3 e2 50
    0020  4b 77 b3 8d 97 b9 19 8d  d1 39 be 22 49 93 d4 96
    0030  2f d8 9a 26 4c ce 91 bc  34 3a dd 8d 73 a9 32 7d
    0040  27 95 82 20 a8 c9 40 1d  d9 d2 c8 b9 cc ba 64 89
    0050  36 4f 11 3f 9e 32 0a 90  60 3b ef c6 f8 31 44 8e
    0060  53 ce 01 a2 5c a5 32 6d  02 b4 94 e9 fb f9 ec af
    0070  9b 7c e2 71 81 91 16 05  b8 b3 fe e2 45 cc af 33
    0080  17 ba 37 9f 16 2c d9 02  03 01 00 01
Certificate Extensions: 9
    1.3.6.1.5.5.7.1.1: Flags = 0, Length = 64
    Dostęp do informacji o urzędach
        [1]Dostęp do informacji o urzędzie
             Metoda dostępu=Urząd certyfikacji - wystawca (1.3.6.1.5.5.7.48.2)
             Nazwa zapasowa:
                  Adres URL=http://pub.vnpt-ca.vn/certs/vnptca.cer
        [2]Dostęp do informacji o urzędzie
             Metoda dostępu=Protokół stanu certyfikatu online (1.3.6.1.5.5.7.48.1)
             Nazwa zapasowa:
                  Adres URL=http://ocsp.vnpt-ca.vn/responder

    2.5.29.14: Flags = 0, Length = 16
    Identyfikator klucza podmiotu
        b8f9e7dde73d7aec2e046b185421f2bad63611d3

    2.5.29.19: Flags = 1(Critical), Length = 2
    Podstawowe warunki ograniczające
        Typ podmiotu=Jednostka końcowa
        Warunki ograniczające długości ścieżki=Brak

    2.5.29.35: Flags = 0, Length = 18
    Identyfikator klucza urzędu
        Identyfikator klucza=0669c0d5d5028a158d467de97ce2680a55ac6aaf

    2.5.29.32: Flags = 0, Length = 65
    Zasady certyfikatu
        [1]Zasady certyfikatu:
             Identyfikator zasad=1.3.6.1.4.1.30339.1.1.3.1.1.1
             [1,1]Informacje o kwalifikatorze zasad:
                  Identyfikator kwalifikatora zasad=Powiadomienie użytkownika
                  Kwalifikator:
                       Tekst uwagi=OID-S1.0-51m
             [1,2]Informacje o kwalifikatorze zasad:
                  Identyfikator kwalifikatora zasad=CPS
                  Kwalifikator:
                      http://pub.vnpt-ca.vn/rpa

    2.5.29.31: Flags = 0, Length = 2a
    Punkty dystrybucji listy CRL
        [1]Punkt dystrybucji CRL
             Nazwa punktu dystrybucji:
                  Pełna nazwa:
                       Adres URL=http://crl.vnpt-ca.vn/vnptca.crl

    2.5.29.15: Flags = 1(Critical), Length = 4
    Użycie klucza
        Podpis cyfrowy, Weryfikacja tożsamości, Szyfrowanie klucza, Szyfrowanie danych (f0)

    2.5.29.37: Flags = 0, Length = 19
    Ulepszone użycie klucza
        Podpisywanie dokumentu (1.3.6.1.4.1.311.10.3.12)
        Nieznane użycie klucza (1.2.840.113583.1.1.5)

    2.5.29.17: Flags = 0, Length = 18
    Alternatywna nazwa podmiotu
        Nazwa RFC822=haidt@vinatex.com.vn

Signature Algorithm:
    Algorithm ObjectId: 1.2.840.113549.1.1.5 sha1RSA
    Algorithm Parameters:
    05 00
Signature: UnusedBits=0
    0000  68 89 22 af eb 47 ec 95  c0 fe 13 0c 39 8a ca 4b
    0010  0f c6 97 71 d9 92 78 07  94 e4 cb ac a0 d0 7e 6b
    0020  ee 86 21 58 39 f6 a8 3c  f7 8f 33 1a e1 6a e6 4a
    0030  07 da bf 47 28 53 88 90  cf ed d2 45 fc 7c 37 b0
    0040  cf e0 ec 7d ea 3f 36 03  a5 86 4d 12 47 c5 b9 ee
    0050  ba 62 1d 69 c5 b5 db b9  49 1e 5e 8d 16 05 8a ff
    0060  d7 54 3d 76 48 d2 ea b9  25 5c 8d 91 99 97 9d a4
    0070  62 68 b1 32 af 07 e3 b0  72 52 f9 dd a5 c0 d2 7e
    0080  3b 96 93 14 19 8e 60 4a  6c 54 f3 23 54 b6 3a 12
    0090  82 32 72 4a 2f 0e 6d 6c  a7 97 5f b8 2e 82 88 da
    00a0  d5 2e 4b 55 26 a7 e7 33  81 3a 79 62 6e 4c a6 80
    00b0  df d2 6c bd fc 5b cc ae  59 a8 ab f4 eb 95 5f e1
    00c0  74 78 81 eb 0d 07 7d 65  8e 64 5f 5b 58 c1 cf aa
    00d0  4a 19 03 90 a4 d9 bd 81  19 5b 97 4c b2 41 68 8a
    00e0  33 29 87 d1 4e 46 29 f9  69 34 40 38 90 03 09 2b
    00f0  cf 7d da 72 b4 4f c7 4d  02 a8 1c f6 62 7c 54 ce
    0100  96 71 7f 7d e3 cc 1d 6b  43 2f 96 e1 c5 73 65 e2
    0110  6c 1f d4 99 c7 e0 50 33  a5 b4 33 7e d5 7d c8 d5
    0120  99 c4 10 ac 7d ff 12 89  83 82 72 21 3a 18 98 9d
    0130  d5 51 f0 45 58 70 a4 c6  cc c8 94 93 0e 90 2a c0
    0140  85 12 df 5d c3 95 91 48  d6 f3 60 00 51 c5 9f 7a
    0150  42 06 14 c8 b4 65 0e 22  4b 27 75 6d 42 90 10 b2
    0160  cf 80 9a 59 ac fd cb 8a  c2 b8 74 52 42 65 7f ea
    0170  67 c0 d6 63 4c cd 4d 28  b6 3b 49 d2 6f 8a b5 4d
    0180  ab e5 56 b3 29 9a ed cf  b4 ba 3e 86 50 44 2d 5e
    0190  fd 4d 9b e4 d9 be db c6  7c e0 fb 30 5f 2e c6 0c
    01a0  72 cd 8a cf 0d dc 40 ab  b1 fc 83 e2 d1 f3 8d 7d
    01b0  f3 3e 4c 3a ec 28 ab 97  b3 b2 bd d1 3d 59 08 df
    01c0  52 7b 30 69 ca 9f 57 0b  32 d8 94 d0 10 53 ef e6
    01d0  e4 5a 05 4c f4 ef d7 db  e5 c2 33 bc bb dc 84 04
    01e0  59 26 92 5e 90 80 4a a5  9e 6a 89 1c 6b 2e 4a 6f
    01f0  78 55 88 c5 76 7a 48 ad  c2 43 e8 13 50 0d 00 4f
Non-root Certificate
Key Id Hash(rfc-sha1): b8f9e7dde73d7aec2e046b185421f2bad63611d3
Key Id Hash(sha1): 457087b8a9039f043e19cd0d4f6c1e4ffc7fbe4c
Key Id Hash(bcrypt-sha1): 8bf9bb7a4616c656ced81411049a2a10ec7b5a2e
Key Id Hash(bcrypt-sha256): 5f2592b92031fc3c51a0eb62086d40f27c53304f31e7d94b55aebbb9506943bd
Key Id Hash(md5): d4ef36f12323d4d0b20f281132aafb72
Key Id Hash(sha256): af1581f0567747ea29195191a34e515d6fa9e06dcba310f4caf872643c1dfd05
Key Id Hash(pin-sha256): qCVOEMNa9leCvbcNTfzVodtjoPmXJ35nTaNBx6pc+1Y=
Key Id Hash(pin-sha256-hex): a8254e10c35af65782bdb70d4dfcd5a1db63a0f997277e674da341c7aa5cfb56
Cert Hash(md5): e1e93a7e2ddf5eeb860636fbc5c9d974
Cert Hash(sha1): f31ff4b50f8f240baa219fb3c58e6142ef23257c
Cert Hash(sha256): 55cb461bef1be792ba5bf8581d60c0ccb8f9c67d151328134f24b20087f5d137
Signature Hash: ca3d01b01ff6e24f4193bc7aca9f52e6aaecdf10
CertUtil: -dump command completed successfully.
====================================================================
 

 


 

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

This was one of many things that I had on my private:   AutoIt TODO list.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

before ask about that. I have found this command 

Quote

openssl x509 -in acs.qacafe.com.pem -text

but I dont know how to use that. and now see you UDF I know more 1 things I asked more about StdoutRead never  used

Thank you again

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...