Set permissions on private key only following provisioning

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Set permissions on private key only following provisioning

L1 Bithead

Good day all, I have a scenario where we are provisioning certificate and private key to an Apache application (though this can apply to other PEM type deployments).

 

We want to set new owner and permissions but only to the private key and not the certificate itself. The thought we had was to use a workflow process to inject a chmod command, but we werent sure if this could be done, or if it can be done what sort of syntax could be used to single out the private key file. Just looking to see if someone has any thoughts about how to accomplish this.

 

Thanks in advance.. 

6 REPLIES 6

L1 Bithead
Hey Paul, long time no see! You could use the Policy macro which allows you to retrieve values which are set on the object. So in this case your command injection command would be: /usr/bin/chmod 400 $Policy[$WorkflowTargetDN$,Private Key File]$ The workflow has to be applied to the folder the Device/Application are in WorkflowTargetDN will be the distinguished name of the application object the workflow is applied to. Private Key File is the attribute name for that field( you can find these easily by clicking on the Support tab of the Application.

L1 Bithead
Hey Paul, long time no see! You could use the Policy macro which allows you to retrieve values which are set on the object. So in this case your command injection command would be: /usr/bin/chmod 400 $Policy[$WorkflowTargetDN$,Private Key File]$ The workflow has to be applied to the folder the Device/Application are in WorkflowTargetDN will be the distinguished name of the application object the workflow is applied to. Private Key File is the attribute name for that field( you can find these easily by clicking on the Support tab of the Application.

L1 Bithead
Awesome, thanks Dan! I figured it was going to be something fairly simple.

L1 Bithead
Awesome, thanks Dan! I figured it was going to be something fairly simple.

L4 Transporter
Hello @Paul Walski Im on the Community Team at Venafi. Thank you for starting your first conversation in the community!Id love to send you a small gift to commemorate the moment you tapped into the community. If youre interested, please send me a message (go to my profile and click on the Send Message button).

L4 Transporter
Hello @Paul Walski Im on the Community Team at Venafi. Thank you for starting your first conversation in the community!Id love to send you a small gift to commemorate the moment you tapped into the community. If youre interested, please send me a message (go to my profile and click on the Send Message button).
  • 71 Views
  • 6 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!