如果需要导出为不同于 DER 编码的格式,可以更改 Export-Securities 的 -Type参数以使用。NET,正如在 help Export-Certificate -Detailed中看到的:
-Type <CertType>
Specifies the type of output file for the certificate export as follows.
-- SST: A Microsoft serialized certificate store (.sst) file format which can contain one or more certificates. This is the default value for multiple certificates.
-- CERT: A .cer file format which contains a single DER-encoded certificate. This is the default value for one certificate.
-- P7B: A PKCS#7 file format which can contain one or more certificates.