I wish to add a certificate in central admin using PowerShell script. I have no experience at all with PowerShell. I got this script somewhere from other site but not sure if it's correct or not.
Remove-SPTrustedRootAuthority CASigningRootCert
Remove-SPTrustedRootAuthority CASigningCert
$rootcert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("full_path_to_updated_certificate_authority_certificate.cer")
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("full_path_to_signing_certificate.cer")
$tip = Get-SPTrustedIdentityTokenIssuer name_of_trusted_identity_provider
$tip.SigningCertificate = $cert
$tip.Update()
New-SPTrustedRootAuthority -Name "CASigningRootCert" -Certificate $rootcert
New-SPTrustedRootAuthority -Name "CASigningCert" -Certificate $cert
From above should i replace ?Full_path_to_updated_certificate_authority_certificate.cer with certificate which i have
What should I replace this with?Full_path_to_signing_certificate.cer
What should i replace this with name_of_trusted_identity_provider
If above script is not correct then is there any simple script?