pki-tps-connector(5)
π pki-tps-connector(5) β PKI TPS Profile Configuration π
okay bestie, gather round, because this is the page for pki-tps-connector(5), aka the PKI TPS Profile Configuration manual. it's literally all about how token profiles get defined, and once you get the vibe it's so slay. no cap, every property here is just a little key=value moment living inside a config file. let's get into it π«Ά
π LOCATION
/var/lib/pki/instance/conf/tps/CS.cfg
that's the file. that's the one. everything below lives in there. periodt. π
β¨ DESCRIPTION β¨
so the whole concept: token profiles are defined using properties in the TPS configuration file. that's the tea. each section below is a different operation, and each one has its own lil properties. let's go one by one, no skipping, we don't do that here π
π Enrollment Operation For CoolKey π
first up, enrollment. this next property sets the size of the key the token should generate:
op.enroll.<tokenType>.keyGen.<keyType>.keySize=1024
heads up: the maximum value is 1024. so don't get cute and go bigger, bestie.
now the properties that specify the PKCS11 attributes to set on the token. there are a whole dozen of these and yes, we are listing all of them, because they're all iconic in their own way:
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.encrypt=false
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.sign=true
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.signRecover=true
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.decrypt=false
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.derive=false
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.unwrap=false
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.wrap=false
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.verifyRecover=true
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.verify=true
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.sensitive=true
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.private=true
op.enroll.<tokenType>.keyGen.<keyType>.keyCapabilities.token=true
next, the property that specifies the CUID shown in the certificate:
op.enroll.<tokenType>.keyGen.<keyType>.cuid_label
and the property that specifies the token name:
op.enroll.<tokenType>.keyGen.<keyType>.label
now this part is lowkey my favorite because you get to use variables in the token name. here's the whole squad π:
$pretty_cuid$β Pretty Print CUID (i.e.4090-0062-FF02-0000-0B9C)$cuid$β CUID (i.e.40900062FF0200000B9C)$msn$β MSN$userid$β User ID$profileId$β Profile ID
important, fr fr: all resulting labels for co-existing keys on the same token must be unique. no duplicates, bestie, we don't do that.
next up, the property that determines whether TPS will overwrite key and certificate if they already exist:
op.enroll.<tokenType>.keyGen.<keyType>.overwrite=true|false
now the properties that specify name PKCS11 object IDs:
op.enroll.<tokenType>.keyGen.<keyType>.certId=C1
op.enroll.<tokenType>.keyGen.<keyType>.certAttrId=c1
op.enroll.<tokenType>.keyGen.<keyType>.privateKeyAttrId=k2
op.enroll.<tokenType>.keyGen.<keyType>.publicKeyAttrId=k3
op.enroll.<tokenType>.keyGen.<keyType>.privateKeyNumber=2
op.enroll.<tokenType>.keyGen.<keyType>.publicKeyNumber=3
okay so here's the cipher, and honestly it's giving secret code π΅οΈ β lower case letters signify objects containing PKCS11 object attributes in the format described below:
cβ an object containing PKCS11 attributes for a certificate.kβ an object containing PKCS11 attributes for a public or private key.rβ an object containing PKCS11 attributes for an "reader".
and upper case letters signify objects containing raw data corresponding to the lower case letters described above. for example, object C0 contains raw data corresponding to object c0. the way that's so consistent of them β¨
Cβ this object contains an entire DER cert, and nothing else.Kβ this object contains a MUSCLE "key blob". TPS does not use this.
moving on! the following properties specify the algorithm, the key size, the key usage, and which PIN user should be granted:
op.enroll.<tokenType>.keyGen.<keyType>.alg=2
op.enroll.<tokenType>.keyGen.<keyType>.keySize=1024
op.enroll.<tokenType>.keyGen.<keyType>.keyUsage=0
op.enroll.<tokenType>.keyGen.<keyType>.keyUser=0
the valid algorithms are, and yes we love a short list:
2β RSA5β ECC
for ECC, the valid key sizes are 256 and 384. πΈ
use privilege of the generated private key, or 15 if all users have use privilege for the private key. valid usages (and note this only specifies the usage for the private key, so don't get it twisted):
0β default usage (Signing only for this APDU)1β signing only2β decryption only3β signing and decryption
next, the property that determines whether to enable writing of PKCS11 cache object to the token:
op.enroll.<tokenType>.pkcs11obj.enable=true|false
and the property that determines whether to enable compression for writing of PKCS11 cache object to the token:
op.enroll.<tokenType>.pkcs11obj.compress.enable=true|false
now the property that determines the maximum number of retries before blocking the token:
op.enroll.<tokenType>.pinReset.pin.maxRetries=127
again with the cap: the maximum value is 127.
there's a special case of tokenType userKeyTemporary. make sure the profile specified by the profileId has a short validity period (e.g. 7 days) for the certificate. short and sweet, main character energy π
op.enroll.userKey.keyGen.<keyType>.publisherId=fileBasedPublisher
op.enroll.userKeyTemporary.keyGen.<keyType>.publisherId=fileBasedPublisher
and this next property describes the scheme used for recovery:
op.enroll.<tokenType>.keyGen.<keyType>.recovery.<tokenState>.scheme=GenerateNewKey
the three recovery schemes supported are:
GenerateNewKeyβ Generate a new cert for the encryption cert.RecoverLastβ Recover the most recent cert for the encryption cert.GenerateNewKeyandRecoverLastβ Generate new cert AND recover last for encryption cert.
pick your fighter, they're all valid π
π¦ Token Renewal π¦
the following properties are used to define token renewal:
op.enroll.<tokenType>.renewal.*
for each token in the TPS UI, set the following to trigger renewal operations:
RENEW=YES
note this one: optional grace period enforcement must coincide exactly with what the CA enforces. no vibes-based guessing here, bestie.
in case of renewal, encryption certId values are for completeness only β server code calculates actual values used. so don't stress about them, they're just there to look pretty π
π Format Operation For tokenKey π
the following property determines whether to update applet if the token is empty:
op.format.<tokenType>.update.applet.emptyToken.enable=false
this property is applicable to:
- CoolKey
- HouseKey
- HouseKey with Legacy Applet
π Certificate Chain Imports π
op.enroll.certificates.num=1
op.enroll.certificates.value.0=caCert
op.enroll.certificates.caCert.nickName=caCert0 pki-tps
op.enroll.certificates.caCert.certId=C5
op.enroll.certificates.caCert.certAttrId=c5
op.enroll.certificates.caCert.label=caCert Label
look at that chain, it's literally a chain. so meta. π₯
π Pin Reset Operation For CoolKey π
the following property determines whether to update applet if the token is empty:
op.pinReset.<tokenType>.update.applet.emptyToken.enable=false
and unlike the format one up there, this property is not applicable to:
- HouseKey
- HouseKey with Legacy Applet
so close but not the same, iykyk π
π SEE ALSO
go read that one next bestie, it's the sequel π«Ά
π AUTHORS
Dogtag PKI Team <devel@lists.dogtagpki.org>.
π COPYRIGHT
Copyright (c) 2014 Red Hat, Inc. This is licensed under the GNU General Public License, version 2 (GPLv2). A copy of this license is available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
and that's the whole page, bestie!! π this was the PKI manual, dated May 6, 2014, and you just read the pki-tps-connector(5) glow-up. go forth and configure those tokens, you absolute icon πβ¨π
π¦ where this page comes from
- fedora 43: dogtag-pki-tps 11.8.0-0.6.beta6.fc43 Β· GPL-2.0-only AND LGPL-2.0-only
- fedora 43: dogtag-pki-tps 11.8.0-1.fc43 Β· GPL-2.0-only AND LGPL-2.0-only
- fedora 44: dogtag-pki-tps 11.9.0-1.fc44.3 Β· GPL-2.0-only AND LGPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms