Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 545 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 545 Bytes

golang-tofu

Simple golang lib for TLS Trust On First Use which can be used to establish trust for self-signed server certificates.

First, call GetFingerprints to retrieve the server certificate details. The user should then perform validation through some side-band channel. Once the user has verified the certificate fingerprint, the fingerprint can be stored, and used for subsequent connections to the server.

See example/main.go for an example using this library.