Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
get base64 tool
« previous
next »
Print
Pages: [
1
]
Author
Topic: get base64 tool (Read 2185 times)
eguun
Newbie
Posts: 9
Karma: 0
get base64 tool
«
on:
September 17, 2021, 05:25:39 pm »
Hello,
I am struggling to find an actionable way to get the tool base64 on opnsense
for reference:
https://linux.die.net/man/1/base64
This is the tool to encode/decode string from the shell.
I can't find it in packages, it's not installed by default ...
Am I missing something easy and obvious to get it ?
Any pointers would be welcome.
Thanks
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: get base64 tool
«
Reply #1 on:
September 17, 2021, 07:00:13 pm »
In worst case you should be able to build it from the ports tree however you could use OpenSSL as well.
Logged
eguun
Newbie
Posts: 9
Karma: 0
Re: get base64 tool
«
Reply #2 on:
September 22, 2021, 04:09:01 pm »
Sorry for the late response, I hadn't been notified on the activity here.
Thanks for your reply.
I can't find the tool handy in the pkg library.
These 2 options you recommend, would you please be kind to share a link there where I can learn more how to work with ports or openssl to achieve this result?
Thanks
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: get base64 tool
«
Reply #3 on:
September 22, 2021, 08:21:57 pm »
Ports tree:
=========
AFAIK the quick command is opnsense-code tools ports
Then you can build everything from the source code.
Some docs are here:
https://github.com/opnsense/tools
OpenSSL:
========
https://wiki.openssl.org/index.php/Command_Line_Utilities#Base64_Encoding_Strings
Logged
eguun
Newbie
Posts: 9
Karma: 0
Re: get base64 tool
«
Reply #4 on:
September 22, 2021, 08:42:57 pm »
Okay many thanks, I can work with this
Logged
lilsense
Hero Member
Posts: 600
Karma: 19
Re: get base64 tool
«
Reply #5 on:
September 23, 2021, 02:42:39 pm »
It's on Freebsd butjust needs to be broght over...
https://freebsd.pkgs.org/12/freebsd-amd64/base64-1.5_1.txz.html
Logged
eguun
Newbie
Posts: 9
Karma: 0
Re: get base64 tool
«
Reply #6 on:
September 23, 2021, 03:36:43 pm »
Many thanks for the response.
To help any other people having this issue and finding this thread.
I managed to make it work via 2 options:
1- I build a oneliner- script to use openssl base64. I named the script base64 and redirect args towards openssl - following fabian's pointers
2- I downloaded the compiled binary from lilsense link:
https://freebsd.pkgs.org/12/freebsd-amd64/base64-1.5_1.txz.html
- worked right out of the box!
Both solution works.
There is still a 3rd way which would have been to compile from source ... but I haven't gone through this.
My warm thanks for the support!
my bash script (named base64 and placed in /root/bin):
Code:
[Select]
#!/usr/local/bin/bash
/usr/bin/openssl base64 "$@"
«
Last Edit: September 23, 2021, 03:49:16 pm by eguun
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
get base64 tool