Skip to content

Instantly share code, notes, and snippets.

@Aptimex
Created February 24, 2026 00:38
Show Gist options
  • Select an option

  • Save Aptimex/41de29efcb32f57058f5c43b615aac13 to your computer and use it in GitHub Desktop.

Select an option

Save Aptimex/41de29efcb32f57058f5c43b615aac13 to your computer and use it in GitHub Desktop.
Convert a base64 kirbi ticket file to a binary .kirbi file, then to a ccache file
# This goes in ~/.bashrc or similar
function k2c() {
base=$(basename "$1")
k="${base%.*}.kirbi"
c="${base%.*}.ccache"
cat $1 | base64 -d > $k
ticketConverter.py $k $c
echo "Converted. Now run: export KRB5CCNAME=\$(realpath $c)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment