X509Certificate2Collection.ImportFromPemFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Imports a collection of RFC 7468 PEM-encoded certificates.
public:
void ImportFromPemFile(System::String ^ certPemFilePath);
public void ImportFromPemFile (string certPemFilePath);
member this.ImportFromPemFile : string -> unit
Public Sub ImportFromPemFile (certPemFilePath As String)
Parameters
- certPemFilePath
- String
The path for the PEM-encoded X509 certificate collection.
Exceptions
The decoded contents of a PEM are invalid or corrupt and could not be imported.
certPemFilePath
is null
.
Remarks
See ReadAllText(String) for additional documentation about exceptions that can be thrown.
PEM-encoded items with a CERTIFICATE PEM label will be imported. PEM items with other labels will be ignored.
More advanced scenarios for loading certificates and can leverage PemEncoding to enumerate PEM-encoded values and apply any custom loading behavior.
Applies to
Кері байланыс
https://aka.ms/ContentUserFeedback.
Жақында қолжетімді болады: 2024 жыл бойы біз GitHub Issues жүйесін мазмұнға арналған кері байланыс механизмі ретінде біртіндеп қолданыстан шығарамыз және оны жаңа кері байланыс жүйесімен ауыстырамыз. Қосымша ақпаратты мұнда қараңыз:Жіберу және пікірді көру