ae77177087
several new kerberos related libraries and applications to FreeBSD: o kgetcred(1) allows one to manually get a ticket for a particular service. o kf(1) securily forwards ticket to another host through an authenticated and encrypted stream. o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1) and other user kerberos operations. klist and kswitch are just symlinks to kcc(1) now. o kswitch(1) allows you to easily switch between kerberos credentials if you're running KCM. o hxtool(1) is a certificate management tool to use with PKINIT. o string2key(1) maps a password into key. o kdigest(8) is a userland tool to access the KDC's digest interface. o kimpersonate(8) creates a "fake" ticket for a service. We also now install manpages for some lirbaries that were not installed before, libheimntlm and libhx509. - The new HEIMDAL version no longer supports Kerberos 4. All users are recommended to switch to Kerberos 5. - Weak ciphers are now disabled by default. To enable DES support (used by telnet(8)), use "allow_weak_crypto" option in krb5.conf. - libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings disabled due to the function they use (krb5_get_err_text(3)) being deprecated. I plan to work on this next. - Heimdal's KDC now require sqlite to operate. We use the bundled version and install it as libheimsqlite. If some other FreeBSD components will require it in the future we can rename it to libbsdsqlite and use for these components as well. - This is not a latest Heimdal version, the new one was released while I was working on the update. I will update it to 1.5.2 soon, as it fixes some important bugs and security issues.
201 lines
5.5 KiB
Groff
201 lines
5.5 KiB
Groff
-- $Id$ --
|
|
|
|
PKINIT DEFINITIONS ::= BEGIN
|
|
|
|
IMPORTS EncryptionKey, PrincipalName, Realm, KerberosTime, Checksum, Ticket FROM krb5
|
|
IssuerAndSerialNumber, ContentInfo FROM cms
|
|
SubjectPublicKeyInfo, AlgorithmIdentifier FROM rfc2459
|
|
heim_any FROM heim;
|
|
|
|
id-pkinit OBJECT IDENTIFIER ::=
|
|
{ iso (1) org (3) dod (6) internet (1) security (5)
|
|
kerberosv5 (2) pkinit (3) }
|
|
|
|
id-pkauthdata OBJECT IDENTIFIER ::= { id-pkinit 1 }
|
|
id-pkdhkeydata OBJECT IDENTIFIER ::= { id-pkinit 2 }
|
|
id-pkrkeydata OBJECT IDENTIFIER ::= { id-pkinit 3 }
|
|
id-pkekuoid OBJECT IDENTIFIER ::= { id-pkinit 4 }
|
|
id-pkkdcekuoid OBJECT IDENTIFIER ::= { id-pkinit 5 }
|
|
|
|
id-pkinit-kdf OBJECT IDENTIFIER ::= { id-pkinit 6 }
|
|
id-pkinit-kdf-ah-sha1 OBJECT IDENTIFIER ::= { id-pkinit-kdf 1 }
|
|
id-pkinit-kdf-ah-sha256 OBJECT IDENTIFIER ::= { id-pkinit-kdf 2 }
|
|
id-pkinit-kdf-ah-sha512 OBJECT IDENTIFIER ::= { id-pkinit-kdf 3 }
|
|
|
|
id-pkinit-san OBJECT IDENTIFIER ::=
|
|
{ iso(1) org(3) dod(6) internet(1) security(5) kerberosv5(2)
|
|
x509-sanan(2) }
|
|
|
|
id-pkinit-ms-eku OBJECT IDENTIFIER ::=
|
|
{ iso(1) org(3) dod(6) internet(1) private(4)
|
|
enterprise(1) microsoft(311) 20 2 2 }
|
|
|
|
id-pkinit-ms-san OBJECT IDENTIFIER ::=
|
|
{ iso(1) org(3) dod(6) internet(1) private(4)
|
|
enterprise(1) microsoft(311) 20 2 3 }
|
|
|
|
MS-UPN-SAN ::= UTF8String
|
|
|
|
pa-pk-as-req INTEGER ::= 16
|
|
pa-pk-as-rep INTEGER ::= 17
|
|
|
|
td-trusted-certifiers INTEGER ::= 104
|
|
td-invalid-certificates INTEGER ::= 105
|
|
td-dh-parameters INTEGER ::= 109
|
|
|
|
DHNonce ::= OCTET STRING
|
|
|
|
KDFAlgorithmId ::= SEQUENCE {
|
|
kdf-id [0] OBJECT IDENTIFIER,
|
|
...
|
|
}
|
|
|
|
TrustedCA ::= SEQUENCE {
|
|
caName [0] IMPLICIT OCTET STRING,
|
|
certificateSerialNumber [1] INTEGER OPTIONAL,
|
|
subjectKeyIdentifier [2] OCTET STRING OPTIONAL,
|
|
...
|
|
}
|
|
|
|
ExternalPrincipalIdentifier ::= SEQUENCE {
|
|
subjectName [0] IMPLICIT OCTET STRING OPTIONAL,
|
|
issuerAndSerialNumber [1] IMPLICIT OCTET STRING OPTIONAL,
|
|
subjectKeyIdentifier [2] IMPLICIT OCTET STRING OPTIONAL,
|
|
...
|
|
}
|
|
|
|
ExternalPrincipalIdentifiers ::= SEQUENCE OF ExternalPrincipalIdentifier
|
|
|
|
PA-PK-AS-REQ ::= SEQUENCE {
|
|
signedAuthPack [0] IMPLICIT OCTET STRING,
|
|
trustedCertifiers [1] ExternalPrincipalIdentifiers OPTIONAL,
|
|
kdcPkId [2] IMPLICIT OCTET STRING OPTIONAL,
|
|
...
|
|
}
|
|
|
|
PKAuthenticator ::= SEQUENCE {
|
|
cusec [0] INTEGER -- (0..999999) --,
|
|
ctime [1] KerberosTime,
|
|
nonce [2] INTEGER (0..4294967295),
|
|
paChecksum [3] OCTET STRING OPTIONAL,
|
|
...
|
|
}
|
|
|
|
AuthPack ::= SEQUENCE {
|
|
pkAuthenticator [0] PKAuthenticator,
|
|
clientPublicValue [1] SubjectPublicKeyInfo OPTIONAL,
|
|
supportedCMSTypes [2] SEQUENCE OF AlgorithmIdentifier OPTIONAL,
|
|
clientDHNonce [3] DHNonce OPTIONAL,
|
|
...,
|
|
supportedKDFs [4] SEQUENCE OF KDFAlgorithmId OPTIONAL,
|
|
...
|
|
}
|
|
|
|
TD-TRUSTED-CERTIFIERS ::= ExternalPrincipalIdentifiers
|
|
TD-INVALID-CERTIFICATES ::= ExternalPrincipalIdentifiers
|
|
|
|
KRB5PrincipalName ::= SEQUENCE {
|
|
realm [0] Realm,
|
|
principalName [1] PrincipalName
|
|
}
|
|
|
|
AD-INITIAL-VERIFIED-CAS ::= SEQUENCE OF ExternalPrincipalIdentifier
|
|
|
|
DHRepInfo ::= SEQUENCE {
|
|
dhSignedData [0] IMPLICIT OCTET STRING,
|
|
serverDHNonce [1] DHNonce OPTIONAL,
|
|
...,
|
|
kdf [2] KDFAlgorithmId OPTIONAL,
|
|
...
|
|
}
|
|
|
|
PA-PK-AS-REP ::= CHOICE {
|
|
dhInfo [0] DHRepInfo,
|
|
encKeyPack [1] IMPLICIT OCTET STRING,
|
|
...
|
|
}
|
|
|
|
KDCDHKeyInfo ::= SEQUENCE {
|
|
subjectPublicKey [0] BIT STRING,
|
|
nonce [1] INTEGER (0..4294967295),
|
|
dhKeyExpiration [2] KerberosTime OPTIONAL,
|
|
...
|
|
}
|
|
|
|
ReplyKeyPack ::= SEQUENCE {
|
|
replyKey [0] EncryptionKey,
|
|
asChecksum [1] Checksum,
|
|
...
|
|
}
|
|
|
|
TD-DH-PARAMETERS ::= SEQUENCE OF AlgorithmIdentifier
|
|
|
|
|
|
-- Windows compat glue --
|
|
|
|
PKAuthenticator-Win2k ::= SEQUENCE {
|
|
kdcName [0] PrincipalName,
|
|
kdcRealm [1] Realm,
|
|
cusec [2] INTEGER (0..4294967295),
|
|
ctime [3] KerberosTime,
|
|
nonce [4] INTEGER (-2147483648..2147483647)
|
|
}
|
|
|
|
AuthPack-Win2k ::= SEQUENCE {
|
|
pkAuthenticator [0] PKAuthenticator-Win2k,
|
|
clientPublicValue [1] SubjectPublicKeyInfo OPTIONAL
|
|
}
|
|
|
|
|
|
TrustedCA-Win2k ::= CHOICE {
|
|
caName [1] heim_any,
|
|
issuerAndSerial [2] IssuerAndSerialNumber
|
|
}
|
|
|
|
PA-PK-AS-REQ-Win2k ::= SEQUENCE {
|
|
signed-auth-pack [0] IMPLICIT OCTET STRING,
|
|
trusted-certifiers [2] SEQUENCE OF TrustedCA-Win2k OPTIONAL,
|
|
kdc-cert [3] IMPLICIT OCTET STRING OPTIONAL,
|
|
encryption-cert [4] IMPLICIT OCTET STRING OPTIONAL
|
|
}
|
|
|
|
PA-PK-AS-REP-Win2k ::= CHOICE {
|
|
dhSignedData [0] IMPLICIT OCTET STRING,
|
|
encKeyPack [1] IMPLICIT OCTET STRING
|
|
}
|
|
|
|
KDCDHKeyInfo-Win2k ::= SEQUENCE {
|
|
nonce [0] INTEGER (-2147483648..2147483647),
|
|
subjectPublicKey [2] BIT STRING
|
|
}
|
|
|
|
ReplyKeyPack-Win2k ::= SEQUENCE {
|
|
replyKey [0] EncryptionKey,
|
|
nonce [1] INTEGER (-2147483648..2147483647),
|
|
...
|
|
}
|
|
|
|
PA-PK-AS-REP-BTMM ::= SEQUENCE {
|
|
dhSignedData [0] heim_any OPTIONAL,
|
|
encKeyPack [1] heim_any OPTIONAL
|
|
}
|
|
|
|
|
|
PkinitSP80056AOtherInfo ::= SEQUENCE {
|
|
algorithmID AlgorithmIdentifier,
|
|
partyUInfo [0] OCTET STRING,
|
|
partyVInfo [1] OCTET STRING,
|
|
suppPubInfo [2] OCTET STRING OPTIONAL,
|
|
suppPrivInfo [3] OCTET STRING OPTIONAL
|
|
}
|
|
|
|
PkinitSuppPubInfo ::= SEQUENCE {
|
|
enctype [0] INTEGER (-2147483648..2147483647),
|
|
as-REQ [1] OCTET STRING,
|
|
pk-as-rep [2] OCTET STRING,
|
|
ticket [3] Ticket,
|
|
...
|
|
}
|
|
|
|
END
|