template-krb5name.pem template-krb5name-full.pem template-test-ecc.key \
template-rsa-sha3-256.pem template-rsa-sha3-512.pem template-rsa-sha3-224.pem template-rsa-sha3-384.pem \
name-constraints-ip2.pem chain-md5.pem gost-cert.pem template-tlsfeature.tmpl \
- template-tlsfeature.pem template-tlsfeature.csr
+ template-tlsfeature.pem template-tlsfeature.csr template-tlsfeature-crq.tmpl
dist_check_SCRIPTS = pathlen aki certtool invalid-sig email \
pkcs7 pkcs7-broken-sigs privkey-import name-constraints certtool-long-cn crl provable-privkey \
--- /dev/null
+# X.509 Certificate options
+#
+# DN options
+
+# The organization of the subject.
+organization = "Koko inc."
+
+# The organizational unit of the subject.
+unit = "sleeping dept."
+
+# The locality of the subject.
+# locality =
+
+# The state of the certificate owner.
+state = "Attiki"
+
+# The country of the subject. Two letter code.
+country = GR
+
+# The common name of the certificate owner.
+cn = "Cindy Lauper"
+
+honor_crq_extensions
rc=$?
if test "${rc}" != "0"; then
- echo "CSR printing (1) failed"
+ echo "CSR printing (2) failed"
exit ${rc}
fi
rc=$?
if test "${rc}" != "0"; then
- echo "CSR printing (2) failed"
+ echo "CSR printing (3) failed"
+ exit ${rc}
+fi
+
+#
+# Test certificate generation after a request
+#
+datefudge -s "2007-04-22" \
+"${CERTTOOL}" --generate-certificate \
+ --load-privkey "${srcdir}/template-test.key" \
+ --load-ca-privkey "${srcdir}/template-test.key" \
+ --load-ca-certificate "${srcdir}/template-tlsfeature.pem" \
+ --template "${srcdir}/template-tlsfeature-crq.tmpl" \
+ --load-request "${TMPFILE}" >"${TMPFILE2}" 2>&1
+
+grep -A 2 "TLS Features" "${TMPFILE2}" >"${TMPFILE}" 2>/dev/null
+rc=$?
+
+if test "${rc}" != "0"; then
+ echo "Cert generation (csr) (0) failed"
+ exit ${rc}
+fi
+
+grep "17" "${TMPFILE}" >/dev/null 2>&1
+rc=$?
+
+if test "${rc}" != "0"; then
+ echo "Cert generation (csr) (1) failed"
+ exit ${rc}
+fi
+
+grep "Status Request(5)" "${TMPFILE}" >/dev/null 2>&1
+rc=$?
+
+if test "${rc}" != "0"; then
+ echo "Cert generation (csr) (2) failed"
exit ${rc}
fi