Skip to content

TLS certificate and key should be able to come from strings/bytes #490

Closed

Description

@jclulow

At present, dropshot::ConfigTls is relatively inflexible: it requires the caller to provide a PathBuf for both the certificate and private key.

This requires the file to be something that the process can open at arbitrary points during regular operation, rather than prior to dropping privileges required to open files. It also means the key must be stored in a plain file on disk, accessible to the user account in which the server runs, which is also not ideal.

At a minimum, we should be able to take both of these inputs as a String or a Vec<u8>, in addition to being willing to load them from disk as we presently do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions