This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# re-self-sign id.pem|id.p12 [days] | |
# extends the life of an expired certificate identity | |
b=$(basename $1 .p12) | |
b=$(basename $b .pem) | |
days=$2 | |
# unwrap p12 to pem | |
if [ -f $b.p12 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# gitosis-serve-krb5 | |
# | |
# map kerberos principal to gitosis user (and strip @REALM.COM) | |
# | |
# [/etc/ssh/sshd_config] | |
# Match User git | |
# ForceCommand gitosis-serve-krb5 | |
klist=`klist -5` |