-
Notifications
You must be signed in to change notification settings - Fork 5
/
CAStore_test.go
214 lines (183 loc) · 14.2 KB
/
CAStore_test.go
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
package libICP
import (
"io/ioutil"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func Test_CAStore_BuildPath_1(t *testing.T) {
store := CAStore{}
store.Init()
certs, errs := NewCertificateFromBytes([]byte(ROOT_CA_BR_ICP_V1))
require.Nil(t, errs)
end_cert := certs[0]
ans, err := store.build_path(end_cert, _PATH_BUILDING_MAX_DEPTH)
require.Nil(t, err)
right_ans := make([]*Certificate, 1)
right_ans[0] = end_cert
assert.Equal(t, right_ans, ans)
}
func Test_CAStore_BuildPath_2(t *testing.T) {
store := CAStore{}
store.Init()
certs, err := NewCertificateFromBytes([]byte(pem_ac_soluti + ROOT_CA_BR_ICP_V2))
require.Nil(t, err)
end_cert := certs[0]
root := certs[1]
ans, errs := store.build_path(end_cert, _PATH_BUILDING_MAX_DEPTH)
require.Nil(t, errs)
right_ans := make([]*Certificate, 2)
right_ans[0] = end_cert
right_ans[1] = root
require.NotNil(t, ans)
assert.Equal(t, right_ans, ans)
}
func Test_CAStore_BuildPath_3(t *testing.T) {
store := CAStore{}
store.Init()
// Call init twice just to ensure it does not break things down
store.Init()
certs, err := NewCertificateFromBytes([]byte(pem_ac_digital + pem_ac_soluti + ROOT_CA_BR_ICP_V2))
assert.Nil(t, err)
end_cert := certs[0]
middle_ca := certs[1]
root := certs[2]
store.direct_add_ca(middle_ca)
ans, errs := store.build_path(end_cert, _PATH_BUILDING_MAX_DEPTH)
assert.Nil(t, errs)
right_ans := make([]*Certificate, 3)
right_ans[0] = end_cert
right_ans[1] = middle_ca
right_ans[2] = root
assert.NotNil(t, ans)
assert.Equal(t, right_ans, ans)
}
func Test_CAStore_VerifyCertAt_1(t *testing.T) {
store := CAStore{}
store.Init()
certs, err := NewCertificateFromBytes([]byte(pem_ac_soluti + ROOT_CA_BR_ICP_V2))
assert.Nil(t, err)
end_cert := certs[0]
root := certs[1]
right_ans := []*Certificate{root}
some_time := time.Unix(1528997864, 0)
path, errs, warns := store.verify_cert_at(root, some_time)
assert.Nil(t, errs)
assert.Equal(t, right_ans, path)
assert.Equal(t, 1, len(warns))
assert.EqualValues(t, ERR_UNKOWN_REVOCATION_STATUS, warns[0].Code())
right_ans = []*Certificate{end_cert, root}
path, errs, warns = store.verify_cert_at(end_cert, some_time)
assert.Nil(t, errs)
assert.Equal(t, right_ans, path)
assert.Equal(t, 2, len(warns))
assert.EqualValues(t, ERR_UNKOWN_REVOCATION_STATUS, warns[0].Code())
assert.EqualValues(t, ERR_UNKOWN_REVOCATION_STATUS, warns[1].Code())
}
func Test_CAStore_VerifyCertAt_2(t *testing.T) {
store := CAStore{}
store.Init()
certs, err := NewCertificateFromBytes([]byte(pem_ac_soluti + ROOT_CA_BR_ICP_V2))
assert.Nil(t, err)
end_cert := certs[0]
root := certs[1]
right_ans := []*Certificate{root}
some_time := time.Unix(0, 0)
path, errs, warns := store.verify_cert_at(root, some_time)
assert.Equal(t, 1, len(warns))
assert.Equal(t, right_ans, path)
assert.EqualValues(t, ERR_UNKOWN_REVOCATION_STATUS, warns[0].Code())
assert.Equal(t, 1, len(errs), "there should be only one error")
assert.EqualValues(t, ERR_NOT_BEFORE_DATE, errs[0].Code())
right_ans = []*Certificate{end_cert, root}
path, errs, warns = store.verify_cert_at(end_cert, some_time)
assert.Equal(t, 2, len(warns))
assert.Equal(t, right_ans, path)
assert.EqualValues(t, ERR_UNKOWN_REVOCATION_STATUS, warns[0].Code())
assert.EqualValues(t, ERR_UNKOWN_REVOCATION_STATUS, warns[1].Code())
assert.Equal(t, 2, len(errs), "there should be only two error")
assert.EqualValues(t, ERR_NOT_BEFORE_DATE, errs[0].Code())
assert.EqualValues(t, ERR_NOT_BEFORE_DATE, errs[1].Code())
}
func Test_CAStore_VerifyCertAt_3(t *testing.T) {
store := CAStore{}
store.Init()
certs, err := NewCertificateFromBytes([]byte(pem_ac_digital))
assert.Nil(t, err)
end_cert := certs[0]
some_time := time.Unix(0, 0)
path, errs, warns := store.verify_cert_at(end_cert, some_time)
assert.Nil(t, warns)
assert.Nil(t, path)
assert.NotNil(t, errs)
assert.Equal(t, 1, len(errs), "there should be only one error")
assert.EqualValues(t, ERR_ISSUER_NOT_FOUND, errs[0].Code())
}
func Test_CAStore_AddCAatTime(t *testing.T) {
store := CAStore{}
store.Init()
certs, err := NewCertificateFromBytes([]byte(pem_ac_digital + pem_ac_soluti))
assert.Nil(t, err)
end_ca := certs[0]
middle_ca := certs[1]
some_time := time.Unix(1528997864, 0)
errs := store.add_ca_at_time(end_ca, some_time)
assert.Equal(t, len(errs), 1)
assert.EqualValues(t, errs[0].Code(), ERR_ISSUER_NOT_FOUND)
errs = store.add_ca_at_time(middle_ca, some_time)
assert.Nil(t, errs)
errs = store.add_ca_at_time(end_ca, some_time)
assert.Nil(t, errs)
}
func Test_CAStore_ParseCAsZip(t *testing.T) {
store := CAStore{}
store.Init()
raw, err := ioutil.ReadFile("data/ACcompactado.zip")
require.Nil(t, err)
err = store.parse_CAs_zip(raw, int64(len(raw)))
require.Nil(t, err)
}
func Test_CAStore_list_crls(t *testing.T) {
store := NewCAStore(false)
crls := store.list_CRLs()
assert.Equal(t, crls, map[string]bool{
"http://acraiz.icpbrasil.gov.br/LCRacraizv1.crl": true,
"http://acraiz.icpbrasil.gov.br/LCRacraizv2.crl": true,
"http://acraiz.icpbrasil.gov.br/LCRacraizv5.crl": true,
})
}
func Test_CAStore_AddTestingRootCA_1(t *testing.T) {
name := nameT{
[]atv{atv{Type: idCountryName, Value: "BR"}},
[]atv{atv{Type: idOrganizationName, Value: "Fake ICP-Brasil"}},
[]atv{atv{Type: idOrganizationalUnitName, Value: "Apenas para testes - SEM VALOR LEGAL"}},
[]atv{atv{Type: idCommonName, Value: "Autoridade Certificadora Raiz de Testes - SEM VALOR LEGAL"}},
}
cert := Certificate{}
cert.base.TBSCertificate.Subject = name
cert.base.TBSCertificate.Issuer = name
cert.finish_parsing()
store := NewCAStore(false)
l1 := len(store.cas)
err := store.AddTestingRootCA(&cert)
require.Nil(t, err)
l2 := len(store.cas)
if !(l2 > l1) {
t.Error("no certificate was added")
}
}
func Test_CAStore_AddTestingRootCA_2(t *testing.T) {
certs, errs := NewCertificateFromBytes([]byte(pem_fake_root_test_2))
require.Nil(t, errs)
require.Equal(t, 1, len(certs))
store := NewCAStore(false)
errs = store.AddTestingRootCA(certs[0])
assert.Equal(t, 1, len(errs))
assert.EqualValues(t, ERR_TEST_CA_IMPROPPER_NAME, errs[0].Code())
assert.Equal(t, 6, len(store.cas))
}
const pem_ac_soluti = "-----BEGIN CERTIFICATE-----\nMIIGOzCCBCOgAwIBAgIBEDANBgkqhkiG9w0BAQ0FADCBlzELMAkGA1UEBhMCQlIx\nEzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h\nbCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1\ndG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwHhcNMT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