Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reads thumbprint of desired X509 certificate from file #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jimmyswimmy
Copy link

I wanted to be able to not always have to select the X509 certificate when I start Keepass. I'm not a C# programmer (or .net, man there's a lot in there) so this could be a lot cleaner I'm sure; it's built from stackoverflow and ms.com snippets.

Anyway, this reads a "X509_thumbprint.txt" file in the main keepass directory, if it exists. If so, it reads the thumbprint (the first/only line of the file, probably this won't work if there's a CR/LF, I didn't care) from the file, and searches for that.

Probably this gives weird behavior if there IS such a file and no perfectly matching certificate. I didn't test for that.

Also, this is the first time I've ever attempted any kind of pull request, not sure what it's supposed to contain. Use it if you want it, ignore if you don't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant