truststore: Not compatible with FreeBSD
There is no code to handle FreeBSD.
FreeBSD stores certificates in /usr/local/etc/ssl.
The port security/p11-kit provides the trust utility
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (3 by maintainers)
Commits related to this issue
- Merge pull request #7 from qiu-x/master Add FreeBSD `certctl` support (Fixes #1) — committed to smallstep/truststore by maraino 5 years ago
A HUGE thank you to @qiu3344 from the FreeBSD community for responding to the plea for a Go developer to help resolve the FreeBSD trust store issue within SmallStep. @qiu3344 stepped up to the plate and unselfishly contributed their expertise and time to bring closure to this issue, Around 100 lines of Go code were added in a pull request. The fix should find its way in a future release of SmallStep and Caddy. Anybody who uses these products on FreeBSD, and its derivatives such as TrueNAS, for private PKI certificate lifecycle management, owes @qiu3344 a debt of gratitude for their contribution in making these products fully functional on more recent FreeBSD versions.
Not quite, it just adds another file location from which it would load trust (this new one being preferred first if it exists). Still uses Go’s crypto implementation.
The change is merged in Go, and will be released in Go 1.17 (and Caddy would just need to be built using that version of Go to get it to work). Actually, you might be able to build Caddy with a nightly/prerelease version of Go, to test out that Caddy reads trust from that new location.
@basilhendroff Digging a bit more in FreeBSD bug tickets, there was apparently a
certctltool added which seems to support managing root certs in the trust store (also supporting a blacklist for example). It seems like putting the smallstep root cert into a particular location then runningcertctl rehashmight do it? Could you look into this? See https://www.freebsd.org/cgi/man.cgi?query=certctl&apropos=0&sektion=0&manpath=FreeBSD+11.4-stable&arch=default&format=htmlAlso an interesting development, Go made a change regarding the location of the trust store a few days ago which should land in the next version of Go, i.e. version 1.17: https://github.com/golang/go/issues/46284. This might also help. I guess this is all meant to land in FreeBSD 12.2?
I don’t follow FreeBSD progress, so you may understand this better, but I’m hoping this might help push this in the right direction.
@mholt no sorry
@Cubox- I’ve just committed a file that will make the compilation possible https://github.com/smallstep/truststore/blob/master/truststore_others.go
FreeBSD support is still pending, so I’ll keep this issue open