X509Certificate2Collection.ExportPkcs7Pem Method

Definition

Exports the X.509 public certificates as a PKCS7 certificate collection, encoded as PEM.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public string ExportPkcs7Pem();

Returns

The PEM encoded PKCS7 collection.

Attributes

Exceptions

A certificate is corrupt, in an invalid state, or could not be exported to PEM.

Applies to

Product Versions
.NET 7, 8, 9, 10