# System.Security.Cryptography.X509Certificates

``` diff
 namespace System.Security.Cryptography.X509Certificates {
     public class X509Certificate2 : X509Certificate {
+        public ReadOnlyMemory<byte> RawDataMemory { get; }
+        public string ExportCertificatePem();
+        public bool TryExportCertificatePem(Span<char> destination, out int charsWritten);
     }
     public class X509Certificate2Collection : X509CertificateCollection, IEnumerable, IEnumerable<X509Certificate2> {
+        public string ExportCertificatePems();
+        public string ExportPkcs7Pem();
+        public bool TryExportCertificatePems(Span<char> destination, out int charsWritten);
+        public bool TryExportPkcs7Pem(Span<char> destination, out int charsWritten);
     }
 }
```

