Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Error export SharePoint Root Authority certificate

$
0
0

I try to export SharePoint Root Authority certificate, but get this error:

You cannot call a method on a null-valued expression.
At line:1 char:1
+ $rootCert.Export("Cert") | Set-Content c:\root.cer -Encoding byte
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

This is the command I run:

$rootCert = (Get-SPCertificateAuthority).RootCertificate $rootCert.Export("Cert") | Set-Content c:\root.cer -Encoding byte

Anyone who could help me out?

I got 3 certificates listed under MMC -> certificates -> sharepoint



Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>