ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

apikey_value generation #81

Closed ahmaddxb closed 3 years ago

ahmaddxb commented 3 years ago

When I use the command echo PFFAhead /dev/urandom | base64 -w0 | tr -d /+= | head -c 20 or echo head /dev/urandom | base64 -w0 | tr -d /+= | head -c 60

i get this base64: Command not found.

dunderrrrrr commented 3 years ago

You need coreutils. sudo apt install coreutils

ahmaddxb commented 3 years ago

now sudo: Command not found.

dunderrrrrr commented 3 years ago

What linux dist are you running?

ahmaddxb commented 3 years ago

this is pfsense freebsd

dunderrrrrr commented 3 years ago

Oh youre running it in the box, i see.

Try this, pkg install base64.

ahmaddxb commented 3 years ago

pkg install base64 doesnt work package not found

I run the command on another linux manchine now and they worked so I guess that good enought.

Thanks

dunderrrrrr commented 3 years ago

Okay, yeah ive always been running the command on another ubuntu-machine.

Glad to hear you worked it out.