Automating certificate management in Edge Browser through programming

于 培健 0 Reputation points
2023-05-13T06:54:46.9633333+00:00

Hello developer, 

When it comes to managing certificates in the Edge browser, the "Manage certificates" option can be found in the "Privacy, search, and services" setting of Edge. By opening the certificate manager, various operations related to certificate management can be performed manually,

For example:

option1: viewing certificate details and certificate chain details;

option2: importing and deleting certificates;

option3: checking certificate status,

and so on.

May I ask how to achieve automation of these operations through programming, including loading certificates, parsing certificates, building certificate chain, verifying certificates, obtaining verification results, and deleting certificates, replacing manual operations (options 1, 2, 3)?

In other words, how can all the available functions in the certificate manager be implemented through programming and run automatically through the program to replace laborious manual operations?

Thank you.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,212 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,812 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShiJieLi-MSFT 8,416 Reputation points Microsoft Vendor
    2023-05-15T07:33:11.3466667+00:00

    Hi @于 培健,

    The Certificate window within Microsoft Edge is actually a window of OS level. To automate OS window/dialog, you'll have to use some automation tools like AutoIT:

    http://www.autoitscript.com/site/autoit/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li