To base64 encode a file:
base64 -i file.jks -o file.jks.txt
To decode it:
base64 -D -i file.jks.txt -o file.jks
To base64 encode a file:
base64 -i file.jks -o file.jks.txt
To decode it:
base64 -D -i file.jks.txt -o file.jks