Is there an Ansible Windows module to configure certificates similar to MMC.exe service?

161 views
Skip to first unread message

zil...@gmail.com

unread,
Aug 12, 2021, 8:51:09 PM8/12/21
to Ansible Project
I want to put add a manual procedure were we add a certificate in our system via the "MMC.exe" console
- Add/remove snap-in
- etc

I looked a win_certificates_store but it didn't add the snap-in like I expected it to

Thanks.

Wei-Yen Tan

unread,
Aug 12, 2021, 8:52:54 PM8/12/21
to ansible...@googlegroups.com
What would you like it to do exactly? Can you describe in pseudo code please?

From: ansible...@googlegroups.com <ansible...@googlegroups.com> on behalf of zil...@gmail.com <zil...@gmail.com>
Sent: Friday, August 13, 2021 12:51:08 PM
To: Ansible Project <ansible...@googlegroups.com>
Subject: [ansible-project] Is there an Ansible Windows module to configure certificates similar to MMC.exe service?
 
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/07594c7e-27b6-4488-b893-a2455bf0bcden%40googlegroups.com.

zil...@gmail.com

unread,
Aug 12, 2021, 9:04:59 PM8/12/21
to Ansible Project
Here's the manual procedure i'm trying to automate. Thanks

  1. In Windows, click Start > Run.

  2. Type MMC.exe and press Enter.

  3. In MMC console, on the File menu, click Add/Remove Snap-in.

  4. Click Certificates, and then click Add.

  5. In the Certificates snap-in dialog box, select Computer account, and then click Next.

  6. Click Finish, and then click OK.

  7. In MMC Console, expand Certificates (Local Computer), and then expand Trusted Root Certification A u t h o r i t i e s.

  8. Right-click Certificates, point to All Tasks, and then click Import.

  9. Click Next, and then browse to the H:\MyApp\cfg folder.

  10. In the file type list, select All Files (*.*).

  11. Open cert.pem to import the certificate.

  12. Exit MMC Console. 


jbor...@gmail.com

unread,
Aug 16, 2021, 3:01:28 PM8/16/21
to Ansible Project

zil...@gmail.com

unread,
Aug 16, 2021, 10:45:00 PM8/16/21
to Ansible Project

That's the same link I posted in my OP. Did you read it? Thanks.
Reply all
Reply to author
Forward
0 new messages