Skip to content

Configurable cert & key location  #27

@richcar58

Description

@richcar58

Allow the location of the certificate and the private key to be configurable in the ~/.tms/config/tms.toml file. Currently, tms_server expects the full certificate chain to be in ~/.tms/certs/cert.pm and the private key to be in ~./tms/certs/key.pm. These locations should be the default but overridable from the configuration file.

Another approach would be to create a script automatically invoked on cert/key update that copies the cert and key to the ~./tms/certs directory of the id that runs tms_server as follows:

    cd ~/.tms/certs (as root)
    cp -p /etc/letsencrypt/live/tms-server-dev.tacc.utexas.edu/fullchain.pem cert.pem    
    cp -p /etc/letsencrypt/live/tms-server-dev.tacc.utexas.edu/privkey.pem key.pem
    chmod 600 cert.pem key.pem
    chown <tms_userid>:<tms_userid> cert.pem key.pem 

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

On Hold

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions