]> git.saurik.com Git - apple/security.git/blame - SecurityTests/clxutils/certcrl/testSubjects/pkinitPolicy/pkinitPolicy.scr
Security-57740.31.2.tar.gz
[apple/security.git] / SecurityTests / clxutils / certcrl / testSubjects / pkinitPolicy / pkinitPolicy.scr
CommitLineData
d8f41ccd
A
1#
2# verify PKINIT policy
3# The certs noCA.cer and noBC.cer must be in your trusted KDC keychain or otherwise
4# be trusted somehow. You can add them using the pkinitTool (tech/dmitch/Misc/pkinitTool/)
5# like so:
6#
7# % pkinitTool t noCA.cer
8# ...KDC cert trust assignment successful
9# % pkinitTool t noBC.cer
10# ...KDC cert trust assignment successful
11#
12globals
13certNetFetchEnable = false
14useSystemAnchors = true
15allowUnverified = true
16end
17
18test = "Client, root cert, expect fail"
19policy = pkinitClient
20cert = noCA.cer
21error = CSSMERR_TP_INVALID_ANCHOR_CERT
22end
23
24test = "Server, CA, expect fail"
25policy = pkinitServer
26cert = CA.cer
27error = CSSMERR_TP_INVALID_ANCHOR_CERT
28end
29
30test = "Server, !CA, success"
31policy = pkinitServer
32cert = noCA.cer
33end
34
35test = "Server, !BC, success"
36policy = pkinitServer
37cert = noBC.cer
38end