Created
September 25, 2016 11:12
-
-
Save nivleshc/91affa0680dbf66c7df63f90f4ec713b to your computer and use it in GitHub Desktop.
Part of the ConfigureADFS.ps1 CSE. This shows how to import a certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install the certificate that will be used for ADFS Service | |
Import-PfxCertificate -Exportable -Password $adminpassword -CertStoreLocation cert:\localmachine\my -FilePath $($localpath+"adfs_certificate.pfx") | |
#get thumbprint of certificate | |
$cert = Get-ChildItem -Path Cert:\LocalMachine\my | ?{$_.Subject -eq "CN=fs.adfsfarm.com, OU=Free SSL, OU=Domain Control Validated"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment