Hi. I am creating an adaptable app Powershell...

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

Hi. I am creating an adaptable app Powershell...

L1 Bithead

Hi. I am creating an adaptable app Powershell script and I am trying to implement remote CSR generation function. My requests keep failing because no information is passed into the $Specific.SubjectDN hashtable for the Generate-CSR function. I try to reference a value as described in the example apps (ie. $Specific.SubjectDN.CN) and its just blank. Same for all variables under the SubjectDN hashtable. I am able to get values for $Specific.SubjAltNames.DNS. I have tried to run the script as a renewal for an existing certificate as well as for a new certificate and the DN values are blank in both scenarios. Am I missing something here? Thanks!

3 REPLIES 3

L4 Transporter

Hi @Shawn Keating​ , hopefully a member of the community is able to advise on this.

If you'd like CyberArk to take a look, you can create a support case from the Services Hub: https://community.cyberark.com/s/services-hub . Some of the more technical or unique cases are best tackled by the Support Team.

L2 Linker

Hey @Shawn Keating​  I hope you're doing well! I would suggest to turn debugging on for your app and add a line of code to show you all the elements in the hashtable:

$Specific.GetEnumerator() |% {add-content $DEBUG_FILE "$([datetime]::Now) $($_.Key) $($_.Value)"}

Thanks @Christopher Blackburn​ ! Turned out to be a simple case issue. I was referencing using SubjectDN and it has be SubjectDn.

  • 15 Views
  • 3 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!