DNS-infomaniak : how do I set env var?
-
I want to setup ACME with a DNS-Infomaniak method. I found how to generate my API token on Infomaniak's console but now I struggle to add it to my pfSense.
In the error message I receive when generating the certificate (or in the code here : https://git.yunzmall.com/apps/acme/-/commit/39fa27a2dc804c3dc4d7a89381ad07bd4f28591f) it says I should add it as an environment variable named INFOMANIAK_API_TOKEN.I've search back and forth how to achieve that on pfSense with no avail, anyone here know how to do that?
I tried to edit~/.tcsh
file by adding asetenv
at the end and reboot my pfSense, but that didn't work -
@lepak would you just put it in the gui settings?
-
@johnpoz sometimes it's so obvious you just miss it... sorry for the (very) dumb question
I switched very quickly this setting and didn't see it -
Yeah if a snake would of bit you ;)
But yeah you have to click on the expansion.. Not really a fan of the acme gui to be honest. But it gets the job done.
The haproxy one could use some work too..
If used them more I guess, but acme and haproxy are pretty much set them and never have to go back to them sorts of things..
So take it is working - once you put in the info.
-
@johnpoz yes it works well now, although the UI is well hidden. I had to click another tiny button to show the full settings for this DNS-Infomaniak, as you said it's not so intuitive but now that it works I won't touch it ever again so...
Thanks for your help!