Git doesn't allow you to have underscores in your config keys. This behavior is coded here https://github.com/git/git/blob/master/config.c#L586
$ git config --file=/etc/krb5.conf libdefaults.renewlifetime # note no "_"
will produce:
[libdefaults]
renewlifetime = 7d