Open adam-kosseck opened 2 years ago
Oh, it's because it's trying to do a string replace on 'principals'. The 'principals' keyword isn't supposed to be the actual principal, but a matching string. Take a look at cepces.conf:
# A list of principals to try when requesting a ticket.
#
# Default: <empty list>
principals=
${shortname}$$
${SHORTNAME}$$
host/${SHORTNAME}
host/${fqdn}
So in your example, you would want to either set --principals='host/${fqdn}'
, or just leave out that parameter and let it do automatic matching.
I think you can work around this by instead using '$$' in the principal name:
getcert add-ca -c cepces-ca -e '/usr/libexec/certmonger/cepces-submit --server=ca.test.local --keytab=/etc/krb5.keytab --principals=VM1$$@TEST.LOCAL'
Ok if it's a usage issue then the docs need to be updated:
Following setup instructions in the cepces project's readme.rst I add a cepces-ca like this:
getcert add-ca -c cepces-ca -e '/usr/libexec/certmonger/cepces-submit --server=ca.test.local --keytab=/etc/krb5.keytab --principals=VM1$@TEST.LOCAL'
This then shows up under getcert:
However when I try to generate a cert request it fails:
For reference the keytab is like this:
If I add the CA without the
--principals
option, I do not get this error.This is on a RHEL 8.6 system, running cepces 0.3.5-6.el8.noarch