Skip to content

Linker removes all setters for CertificateConfig in Kestrel #25482

@benaadams

Description

@benaadams

Compile ASP.NET Core app with ASP.NET Core linking on an all the setters for CertificateConfig are removed; which means a "Certificates" section in config cannot be loaded and Kestrel will therefore ignore all the settings

public string Path { get; set; }
public string KeyPath { get; set; }
public string Password { get; set; }
// Cert store
public bool IsStoreCert => !string.IsNullOrEmpty(Subject);
public string Subject { get; set; }
public string Store { get; set; }
public string Location { get; set; }
public bool? AllowInvalid { get; set; }

Becomes

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions