-
Notifications
You must be signed in to change notification settings - Fork 5
/
SIGNiT_ATcommands.txt
101 lines (93 loc) · 5.21 KB
/
SIGNiT_ATcommands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
>> select SIM applet
+++ AT+CSIM=42,"00A4040010D2760001180002FF34108389C0028B02"
--- +CSIM: 4,9000
--- OK
>> authenticate (******** = ASCII repr of PIN, e.g. 31323334 for PIN "1234")
+++ AT+CSIM=18,"0020000004********"
--- +CSIM: 4,9000
--- OK
>> get key "ukey"
+++ AT+CSIM=18,"80A5000004756b6579"
--- +CSIM: 4,6118
--- OK
+++ AT+CSIM=10,"00C0000018"
--- +CSIM: 52,C404756B6579C010498D2C4D5F634206B9F75B4754EBD6249000
--- OK
+++ AT+CSIM=16,"80CB000003D00100"
--- +CSIM: 4,6148
--- OK
+++ AT+CSIM=10,"00C0000048"
--- +CSIM: 148,C2030B0100C341048D21F58705AFF6425690196C616F22041585E25DC1BC0C8EB060DCE334AD511B000E348AC9F36963D1A47CDF0EA25EBDE2EA7BF320FA180535D40C35FCC9D3BB9000
--- OK
>> get entry title of "ukey" (UUID)
+++ AT+CSIM=18,"80A5000004756b6579"
--- +CSIM: 4,6118
--- OK
+++ AT+CSIM=10,"00C0000018"
--- +CSIM: 52,C404756B6579C010498D2C4D5F634206B9F75B4754EBD6249000
--- OK
>> get X.509 certificate "ucrt"
+++ AT+CSIM=18,"80A500000475637274"
--- +CSIM: 4,6118
--- OK
+++ AT+CSIM=10,"00C0000018"
--- +CSIM: 52,C40475637274C01003120206091240209202000018A8619F9000
--- OK
+++ AT+CSIM=10,"80CC000000"
--- +CSIM: 516,C38202BF308202783082021FA003020102020A00898822806660170001300A06082A8648CE3D0403023081AD3127302506092A864886F70D01090116186B65796D616E6167656D656E74407562697263682E636F6D310B30090603550406130244453120301E06035504080C174E6F727468205268696E652D576573747068616C69616E3110300E06035504070C07436F6C6F676E6531193017060355040A0C10756269726368205465737420476D62483126302406035504030C1D75626972636820476D624820446576696365205369676E696E67204341301E170D3230303333313130303230365A170D3430303332363130303230365A304E310B3009066310
--- OK
+++ AT+CSIM=10,"80CC010000"
--- +CSIM: 516,035504061302444531143012060355040A0C0B75626972636820476D62483129302706035504030C2030333132303230363039313234303230393230323030303031384138363139463059301306072A8648CE3D020106082A8648CE3D030107034200045F8ABFCF849244055507544A5FAD890F6B0E85DC9EEF6BE0F6988FE8282D03CA1F2654F67B84516312978FA0653DBAF8CD89F136407ABD31C7861F495BD69F50A38184308181300E0603551D0F0101FF04040302078030150603551D20040E300C300A06086781120101010101301D0603551D0E04160414CCF918A22559CA97498BF91AC46DD2AEA246DCF5301806086781120101010000040C0C0A6310
--- OK
+++ AT+CSIM=10,"80CC010000"
--- +CSIM: 394,47442D4E472D30363137301F0603551D2304183016801461FF0342F9D212185342C879E63FD9E9A63F1D9A300A06082A8648CE3D040302034700304402203AF38012A8760169BF5F4BAFDE93B94413323AE9A6B760BDF8340295B019B28802206F09BAB852A823CB45F7063CB22D1591F8772780514A392E1C98F6793A9D9DEF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000
--- OK
>> create signed UPP, payload hashed by SIM, signed with key "_ukey"
+++ AT+CSIM=30,"80B562000AC4055F756B6579D00121"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=138,"80B60000407b2254696d657374616d70223a313538383935313339362c224944223a2234393864326334642d356636332d343230362d623966372d35623437353465626436"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=56,"80B68000173234222c2256616c7565223a323539363939363136327d"
--- +CSIM: 4,6179
--- OK
+++ AT+CSIM=10,"00C0000079"
--- +CSIM: 246,9522C410498D2C4D5F634206B9F75B4754EBD62400C42011D437307EDBA43B2AAADCCA8985FCB07C1B5DFFD13E80BC6FD3BB708B087A18C4406EEBDB4A6B0D9FDF34B4089511D0CAD558340BC4702C7E529D8AE62551F909F50FFB5720F2B44D28CA348A26D36314A8B9E14687C2D256345BECE3BDF3669B119000
--- OK
>> create chained UPP, payload hashed by SIM, signed with key "_ukey"
+++ AT+CSIM=30,"80B563000AC4055F756B6579D00121"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=138,"80B60000407b2254696d657374616d70223a313538383935313339382c224944223a2234393864326334642d356636332d343230362d623966372d35623437353465626436"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=56,"80B68000173234222c2256616c7565223a343033393435353737347d"
--- +CSIM: 4,61BB
--- OK
+++ AT+CSIM=10,"00C00000BB"
--- +CSIM: 378,9623C410498D2C4D5F634206B9F75B4754EBD624C4406EEBDB4A6B0D9FDF34B4089511D0CAD558340BC4702C7E529D8AE62551F909F50FFB5720F2B44D28CA348A26D36314A8B9E14687C2D256345BECE3BDF3669B1100C4205D00C7D335C0BB81027DB27917012D023FD8D9E7F2F57C146E9A60992B5C4F73C440960708366E58421501AD18FF0C020C91039FC48BE96C1D280E35E893A9611914FA7C17E1A581844C4C167F83C9390C1CB468BC5F1401B6B82A2592EA638D4F3A9000
--- OK
>> verify signed UPP with key "ukey"
+++ AT+CSIM=28,"80B7220009C404756B6579D00121"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=138,"80B80000409522c410498d2c4d5f634206b9f75b4754ebd62400c42011d437307edba43b2aaadcca8985fcb07c1b5dffd13e80bc6fd3bb708b087a18c4406eebdb4a6b0d9f"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=124,"80B8800039df34b4089511d0cad558340bc4702c7e529d8ae62551f909f50ffb5720f2b44d28ca348a26d36314a8b9e14687c2d256345bece3bdf3669b11"
--- +CSIM: 4,9000
--- OK
>> verify chained UPP with key "ukey"
+++ AT+CSIM=28,"80B7230009C404756B6579D00121"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=138,"80B80000409623c410498d2c4d5f634206b9f75b4754ebd624c4406eebdb4a6b0d9fdf34b4089511d0cad558340bc4702c7e529d8ae62551f909f50ffb5720f2b44d28ca34"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=138,"80B80000408a26d36314a8b9e14687c2d256345bece3bdf3669b1100c4205d00c7d335c0bb81027db27917012d023fd8d9e7f2f57c146e9a60992b5c4f73c440960708366e"
--- +CSIM: 4,9000
--- OK
+++ AT+CSIM=128,"80B880003B58421501ad18ff0c020c91039fc48be96c1d280e35e893a9611914fa7c17e1a581844c4c167f83c9390c1cb468bc5f1401b6b82a2592ea638d4f3a"
--- +CSIM: 4,9000
--- OK