-
-
Notifications
You must be signed in to change notification settings - Fork 4
Dummy file to be able to build on FreeBSD #12
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for initiating this.
FreeBSD and Linux support might be relatively close in term of support so we should be able to extract part of truststore_linux.go
to truststore_posix.go
and make truststore_posix built for linux and freebsd.
@fabpot WDYT?
os.Getenv("HOME") + "/.mozilla/firefox-trunk/*"} | ||
NSSBrowsers = "Firefox and/or Chrome/Chromium" | ||
|
||
CertutilInstallHelp string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a while since I used FreeBSD (and never as a desktop) but I think it has NSS support (at least I find it in FreshPorts). In such case we should try to mimic linux support and update this with the appropriate NSS install command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func (ca *CA) installPlatform() error { | ||
return nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
installing a custom certificate on FreeBSD seems to be done /usr/local/etc/ssl/cert/
and then run certctl rehash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no /usr/local/etc/ssl/cert/
on a FreeBSD default installation. But if you install the ca_root_nss
port, you get the following files:
/etc/ssl/cert.pem
/usr/local/etc/ssl/cert.pem.sample
/usr/local/openssl/cert.pem
/usr/local/share/certs/ca-root-nss.crt
/usr/local/share/licenses/ca_root_nss-3.108/LICENSE
/usr/local/share/licenses/ca_root_nss-3.108/MPL20
/usr/local/share/licenses/ca_root_nss-3.108/catalog.mk
Hi, Thank you for your comments. FWIW:
and it creates the following files in my home directory:
If i can do other tests, feel free to ask. My mid-term goal, ideally, would be to add symfony-cli to the FreeBSD ports tree. |
Hi,
Without this dummy "truststore_freebsd.go" file, i get these errors if i try a build on FreeBSD 14.3 / Go 1.21.13:
After adding this file, the build is ok and i am able to build symfony-cli. So i can install API Platform as described here : Getting Started With API Platform with Symfony
I guess this is really a workaround but, at least, i'm now able to use
symfony-cli
on FreeBSD 🙂