genca() {
local cn=$1; shift
local key=$1; shift
local cert=$1; shift
local skid=$1; shift
local akid=$1; shift
local ca=$1; shift
local cakey=$1; shift
runtest() {
local desc=$1; shift
local usage=$1; shift
local selector=$1; shift
local mtype=$1; shift
local tlsa=$1; shift
local ca=$1; shift
local chain=$1; shift
local digest
case $mtype in 0) digest="";; 1) digest=sha256;; 2) digest=sha512;;
*) echo"bad mtype: $mtype"; exit 1;;
esac
# Tests that might depend on akid/skid chaining # for rakid in "" \ "authorityKeyIdentifier = keyid,issuer" \ "authorityKeyIdentifier = issuer" \ "authorityKeyIdentifier = keyid" do for cakid in "" \ "authorityKeyIdentifier = keyid,issuer" \ "authorityKeyIdentifier = issuer" \ "authorityKeyIdentifier = keyid" do for rskid in """subjectKeyIdentifier = hash" do for caskid in """subjectKeyIdentifier = hash" do
for s in 01 do
checkpass "OOB root TA"2"$s"0 rootcert "" chain1 "$HOST"
checkpass "OOB TA"2"$s"0 cacert2 "" eecert "$HOST"
checkpass "in-chain root TA"2"$s"1 rootcert "" chain "$HOST"
for m in 012 do
checkpass "valid TA"2"$s""$m" rootcert "" chain "$HOST" for ca in "cacert1""cacert2"; do
checkpass "valid TA"2"$s""$m""$ca""" chain "$HOST"
checkpass "valid TA"2"$s""$m""$ca""" chain1 "$HOST"
checkpass "valid TA+CA"2"$s""$m""$ca" rootcert chain1 "$HOST"
checkpass "sub-domain"2"$s""$m""$ca""" chain1 whatever ".$DOMAIN"
checkfail "wrong name"2"$s""$m""$ca""" chain1 "whatever" done done done
done done done done
# These tests don't depend on the akid/skid chaining: # for s in 01 do
checkfail "missing TA"2"$s"1 rootcert "" chain1 "$HOST" for m in 012 do # Special-case "2 1 0" TLSA records. These match as issuer public keys of a # self-signed EE cert. The same key as part of a "2 0 0" certificate would # not match. # if [ "$s" -ne 1 -o "$m" -ne 0 ]; then
checkfail "depth 0 TA"2"$s""$m" sscert "" sscert "$HOST" fi
checkfail "non-TA"2"$s""$m" eecert rootcert chain "$HOST"
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
(vorverarbeitet am 2026-08-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.