Lines Matching refs:certs
30 CERTCTL="certctl -C certs.conf -c certs -u untrusted"
34 # Create certs/ and set up certs.conf to search the specified
41 mkdir certs
42 cat <<EOF >certs.conf
55 cat <<EOF >>certs.conf
64 # Verify the certs directory is empty after dry runs or after
72 for x in certs/*; do
74 atf_fail "certs/ should be empty after $why"
81 # Verify the certs directory is nonempty.
85 for x in certs/*.0; do
88 atf_fail "certs/ should be nonempty"
130 readlink -n "certs/$certbase"
137 if cmp -s "certs/$hash.$counter" "$cert"; then
148 rm "certs/$certbase"
149 rm "certs/$hash.$counter"
157 atf_check -s exit:0 test -f certs/ca-certificates.crt
158 atf_check -s exit:0 test ! -h certs/ca-certificates.crt
160 stat -f %p certs/ca-certificates.crt
161 rm certs/ca-certificates.crt
173 atf_check -s exit:0 test ! -e "certs/$diginotar_base"
174 atf_check -s exit:0 test ! -h "certs/$diginotar_base"
175 atf_check -s exit:0 test ! -e "certs/$diginotar_hash.0"
176 atf_check -s exit:0 test ! -h "certs/$diginotar_hash.0"
182 atf_check -s exit:0 test -e "certs/$diginotar_base"
183 atf_check -s exit:0 test -h "certs/$diginotar_base"
184 atf_check -s exit:0 test -e "certs/$diginotar_hash.0"
185 atf_check -s exit:0 test -h "certs/$diginotar_hash.0"
186 rm "certs/$diginotar_base"
187 rm "certs/$diginotar_hash.0"
193 atf_check -s exit:0 test ! -e "certs/$diginotar_base"
194 atf_check -s exit:0 test ! -h "certs/$diginotar_base"
195 atf_check -s exit:0 test ! -e "certs/$diginotar_hash.0"
196 atf_check -s exit:0 test ! -h "certs/$diginotar_hash.0"
212 atf_check -s exit:0 test -f certs/ca-certificates.crt
213 atf_check -s exit:0 test \! -h certs/ca-certificates.crt
214 atf_check -s exit:0 test \! -s certs/ca-certificates.crt
215 atf_check -s exit:0 rm certs/ca-certificates.crt
283 cat <<EOF >>certs.conf
286 touch certs/bogus.pem
287 ln -s bogus.pem certs/0123abcd.0
289 # Listing shouldn't mention anything in the certs/ cache.
301 atf_check -s exit:0 test -f certs/bogus.pem
302 atf_check -s exit:0 test -h certs/0123abcd.0
318 evilcertsdir=$(printf '-evil certs\n.')
325 # initial (re)hash, nonexistent certs directory
327 atf_check -s exit:0 certctl -C certs.conf \
330 atf_check -s exit:0 diff -ruN -- certs "$evilcertsdir"
336 # initial (re)hash, empty certs directory
337 atf_check -s exit:0 rm -rf -- certs
339 atf_check -s exit:0 mkdir -- certs
342 atf_check -s exit:0 certctl -C certs.conf \
345 atf_check -s exit:0 diff -ruN -- certs "$evilcertsdir"
353 atf_check -s exit:0 certctl -C certs.conf \
356 atf_check -s exit:0 diff -ruN -- certs "$evilcertsdir"
361 atf_check -s exit:0 certctl -C certs.conf \
364 atf_check -s exit:0 diff -ruN -- certs "$evilcertsdir"
384 cat <<EOF >>certs.conf
393 atf_set "descr" "Test certctl with missing certs.conf"
397 mkdir certs
398 atf_check -s exit:0 test ! -e certs.conf
399 atf_check -s not-exit:0 -e match:'certs\.conf' \
411 rmdir certs
423 rmdir certs
425 ln -sfn empty certs
440 rmdir certs
441 echo 'hello world' >certs
445 atf_check -s exit:0 rm certs
458 ln -sfn "$(atf_get_srcdir)/certs2"/*.pem certs/
465 readlink -n "certs/$certbase"
466 rm "certs/$certbase"