Skip to content

Add section for loading PEM keys #19113

@javiercn

Description

@javiercn

[EDIT by guardrex to add the metadata]

In 5.0 we added support for loading certificates in PEM format and keys in PEM format. We added a new property KeyPath in the certificate config to indicate the path to a PEM key file in PKCS8 format (the PKCS8 format bit is important).

Essentially you can pass a certificate and a key separately and the key can be optionally protected with a password specified in the existing password. So for example

{
  "Path": "cert.pem",
  "KeyPath": "cert.key"
}
{
  "Path": "cert.pem",
  "KeyPath": "cert.key",
  "Password": "<<some-password>>"
}
{
  "Path": "cert.crt",
  "KeyPath": "cert.key",
  "Password": "<<some-password>>"
}

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions