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

Support on Windows #61

Open
naphta opened this issue May 30, 2019 · 2 comments
Open

Support on Windows #61

naphta opened this issue May 30, 2019 · 2 comments

Comments

@naphta
Copy link

naphta commented May 30, 2019

Just wondering if there's any plans to support Windows (or if it's theoretically even possible). I did try cross compiling on go 1.12.5 without any luck but I'm not sure if that's a general incompatibility with that version of golang.

@anita-tenjarla
Copy link
Contributor

Hmm... I'm not on Windows so I'm not familiar with golang quirks there, but I do know that certmgr makes heavy usage of the cfssl library (https://github.com/cloudflare/cfssl), which uses cgo. That's the reason I had to write a Makefile and Dockerfile to spin up a container just to do some unit testing... cross compiling locally was throwing me cgo-related errors.

A quick search on cross compiling and cgo brings up golang/go#30863, which says "When trying to cross-compile a Go program that uses cgo, you need to have a C cross-compiler." Maybe messing around with something like https://github.com/karalabe/xgo could help.

@ferringb
Copy link
Contributor

@naphta My expectations are that cloudflare is unlikely to be interested in implementing windows support. That said, I expect we wouldn't be opposed to a PR if it's well contained.

There will have to be work done on cfssl to support this (minimally renaming of some CA bundles since they have windows incompatible names) and there is some pathways being added for signal handling that will have to be adapted for windows.

Can you take a stab at a first pass for this?

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

No branches or pull requests

3 participants