Skip to content

Reads thumbprint of desired X509 certificate from file#5

Open
jimmyswimmy wants to merge 4 commits into
BodnarSoft:masterfrom
jimmyswimmy:master
Open

Reads thumbprint of desired X509 certificate from file#5
jimmyswimmy wants to merge 4 commits into
BodnarSoft:masterfrom
jimmyswimmy:master

Conversation

@jimmyswimmy

Copy link
Copy Markdown

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