Skip to content

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

@jclulow

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

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