Skip to content
This repository was archived by the owner on Feb 28, 2022. It is now read-only.

Check if cert files actually exist#36

Open
flatsiedatsie wants to merge 1 commit intoMycroftAI:masterfrom
flatsiedatsie:patch-1
Open

Check if cert files actually exist#36
flatsiedatsie wants to merge 1 commit intoMycroftAI:masterfrom
flatsiedatsie:patch-1

Conversation

@flatsiedatsie
Copy link

Currently the code just checks if the variables have been set. If you followed the guide, this will be true. However, the cert files aren't actually at the location mentioned in the config file.

This one-line change checks if the files actually exist.

Optionally, the code could still be improved. If for some reason the user has specified a different cert files path than ./mycroft/personal_backend/certs/, then this code is hard-wired to generate the files at that location anyway. It might be better to check which location the user has specified, and then try to generate the cert files at that location if they don't exist.

Currently the code just checks if the variables have been set. If you followed the guide, this will be true. However, the cert files aren't actually at the location mentioned in the config file.

This one-line change checks if the files actually exist.

Optionally, the code could still be improved. If for some reason the user has specified a different cert files path than `./mycroft/personal_backend/certs/`, then this code is hard-wired to generate the files at that location anyway. It might be better to check which location the user has specified, and then try to generate the cert files at that location if they don't exist.
@JarbasAl JarbasAl self-assigned this Jul 19, 2019
@JarbasAl JarbasAl removed their assignment Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

No open projects
Status: Lower priority

Development

Successfully merging this pull request may close these issues.

2 participants