Forum Discussion

Gary_L_Fry's avatar
Gary_L_Fry
Icon for Nimbostratus rankNimbostratus
Jun 12, 2019

Powershell icontrol get_certificate_subject_alternative_name_bundle

Does anyone know how to call get_certificate_subject_alternative_name_bundle in powershell? I can obtain the certificate list using .ManagementKeyCertificate.get_certificate_list(0) but I would now like get the Subject Alternative Names if is_bundled = true.

 

Thanks for your help.

1 Reply

  • Never Mind I figured it out was pretty easy here it is incase someone else needs it:

      $isBundled = ($f5Certificates[$i]).is_bundled

      [String[]]$fileName = ($f5Certificates[$i]).file_name

     

      if($isBundled) {

       $f5CertficateListSan = ($f5Interface).ManagementKeyCertificate.get_certificate_subject_alternative_name_bundle($MANAGEMENT_MODE_DEFAULT,$Filename)

    }

     

    it will return a string array of the subject alternative names.