1 dotMacTool notes May 4 2004
3 -- for now you need this in /etc/hosts:
6 17.207.20.182 int-cert certmgmt.mac.com certinfo.mac.com
9 17.207.43.109 qa-cert certmgmt.mac.com certinfo.mac.com
11 -- A good way to run tcpdump to show HTTP traffic on port 2150:
13 tcpdump -i en0 -s 0 -A -q tcp port 2150
15 -- renew cert for existing account doug1 with password 123456:
17 tower.local:dotMacTool> dotMacTool g -g -u doug1 -Z 123456 -k foobar -r -o /tmp/c2.pem
18 <<<snip away debug logging>>>
19 ...cert acquisition complete
20 ...2496 bytes of Cert written to /tmp/c2.pem
22 ==============================================
24 -- demo queued response and retrieval
25 -- set FORCE_SUCCESS_QUEUED to 1 in dotMacTpRpcGlue.cpp, this turns a full
26 success RPC into a successQueued RPC
28 tower.local:dotMacTool> dotMacTool g -g -u doug1 -Z 123456 -k foobar -r -o /tmp/refid.pem
29 <<<snip away debug logging>>>
30 ...Forcing REQ_QUEUED status
31 ...cert acquisition complete
32 ...105 bytes of Cert written to /tmp/refid.pem
36 tower.local:dotMacTool> dotMacTool l -f /tmp/refid.pem -o /tmp/cert.pem
37 <<<snip away debug logging>>>
38 ...cert retrieval complete
39 ...10010 bytes of cert data written to /tmp/cert.pem
41 ==============================================
46 -- DOT_MAC_LOOKUP_ID_PATH* consts in dotMacTp.h will change to allow loopkup of one
48 -- DOT_MAC_SIGN_HOST_NAME and DOT_MAC_LOOKUP_HOST will change to avoid the port 2150
54 -- use INT1 environment
57 17.207.20.58 int1-idiskng certmgmt.mac.com certinfo.mac.com
59 -- lookup via http://certinfo.mac.com:2150/lookup
60 -- request via certmgmt.mac.com
62 -- provision http://17.207.20.58:2150/_provision/Public/account
63 -- account dmitch4 pwd password
66 # note no more @mac.com for user name
67 % dotMacTool g -g -u dmitch4 -Z password -k foobar -o /tmp/refid -H certmgmt.mac.com:2150
68 ...Forcing REQ_QUEUED status
69 ...Cert request QUEUED
70 ...77 bytes of RefId written to /tmp/refid
72 # note we can't specify alternate host for lookup, have to use !NDEBUG config of .mac TP
73 % dotMacTool l -f /tmp/refid -k foobar
75 -- account dmitch5 pwd password
76 -- signed up for EMAIL SIGN
78 % dotMacRequest s -u dmitch5 -Z password -k foobar -H certmgmt.mac.com:2150 -a
79 -- request had method sign.email
80 -- response had FailedNotSupportedForAccount
82 # try again with ID cert, it works
83 % dotMacRequest i -u dmitch5 -Z password -k foobar -H certmgmt.mac.com:2150 -a
85 # get result, nothing in prefs - yep, OK, we ran async
88 -- dmitch6 password, async, OK
93 % dotMacRequest i -u dmitch10 -Z password -k foobar -H certmgmt.mac.com:2150
100 name dmitch_int2 pwd "password"
102 % dotMacTool g -g -u dmitch_int2 -Z password -k newDotMac.keychain -o /tmp/refid
105 name dmitch_new pwd password, got a cert
106 name dmitch_new2 pwd password