Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created October 31, 2016 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/5ed8fef7b9a9b7799a05cf86c0852453 to your computer and use it in GitHub Desktop.
Save nivleshc/5ed8fef7b9a9b7799a05cf86c0852453 to your computer and use it in GitHub Desktop.
#install the certificate that will be used for ADFS Service
Import-PfxCertificate -Exportable -Password $adfspassword -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