macOS: Mkcert how to elevate

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

macOS: Mkcert how to elevate

L0 Member

Hi,

We're trying to figure out a way to elevate the mkcert -install command on macOS. Creating a sudo elevation command for the mkcert binary and the parameter doesn't seem to work.

 

Thoughts ?

4 REPLIES 4

L7 Applicator

Hi @Rany Qomsiya​ 

 

I think this could be due to child processes when trying to elevate mkcert -install command. Please see if there are any child processes requires elevation as well.

 

Other option I can think is, instead of elevating the binary mkcert, elevate a script wrapper around the exact command. First create a .sh script to include mkcert -install command, make it executable and then create elevation policy for that file.

 

Script:

 

#!/bin/bash

/usr/local/bin/mkcert -install

 

Convert to executable:

 

chmod +x /usr/local/bin/install-mkcert.sh

 

Then create an elevation policy in EPM.

 

 

Hope it helps !

L5 Sessionator

Hi @Rany Qomsiya​ ,

 

Did you get an event in the Events Management when running this command (Need to have a Default Policy - Detect privileged unhandled applications ON) ?

 

If so, you can use the event to create the policy you need....

 

 

Thanks,

Arik.

L4 Transporter

Hello @Rany Qomsiya​ 

 

Have you received an answer to your question? If so, we kindly encourage you to share it with us.

Your insights could be valuable to other community members in the future.

 

Thank you, Isar.

L0 Member

Hi,

 

Unfortunately not. I have pivoted to a home grown solution as the apple security API mechanisms require a local admin account to execute a command against /usr/bin/security.

  • 113 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!