Commit Graph

1735 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
eedb76b8d6 Test dnsname and rfc822 SANs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 15:01:24 +00:00
Love Hörnquist Åstrand
7ddee6b712 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 15:00:18 +00:00
Love Hörnquist Åstrand
d09a750407 test adding eku, ku and san to the certificate (https and pk-init)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 14:50:24 +00:00
Love Hörnquist Åstrand
993dacac92 Add eku, ku and san to the certificate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19580 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 14:49:37 +00:00
Love Hörnquist Åstrand
b5c3feb43f Add --type and --pk-init-principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 14:45:49 +00:00
Love Hörnquist Åstrand
c29c97518f remove id-kp-OCSPSigning, its in rfc2459.asn1 now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 12:40:43 +00:00
Love Hörnquist Åstrand
6171869c5c add error handling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 17:39:48 +00:00
Love Hörnquist Åstrand
79c50d6b5b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 17:35:23 +00:00
Love Hörnquist Åstrand
1ae085e4ce Add KeyUsage extension.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 17:35:05 +00:00
Love Hörnquist Åstrand
af6606bbb7 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:55:03 +00:00
Love Hörnquist Åstrand
5342f14d52 Add sign-certificate tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:54:20 +00:00
Love Hörnquist Åstrand
1c95c59dab Add _hx509_create_signature_bitstring.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19563 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:53:42 +00:00
Love Hörnquist Åstrand
694955c3a8 Add the sign-certificate tool.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19562 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:52:35 +00:00
Love Hörnquist Åstrand
e0462bfd82 Add HX509_QUERY_OPTION_KU_KEYCERTSIGN.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:51:22 +00:00
Love Hörnquist Åstrand
23b2e5ae89 Add hx509_ca_tbs and HX509_QUERY_OPTION_KU_KEYCERTSIGN.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19560 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:50:05 +00:00
Love Hörnquist Åstrand
01553c6d54 Basic test of generating a pkcs10 request, signing it and verifying the chain.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:49:05 +00:00
Love Hörnquist Åstrand
935e09fac5 Naive certificate signer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19558 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 15:48:09 +00:00
Love Hörnquist Åstrand
dce9cb1dd3 add hex
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 20:30:30 +00:00
Love Hörnquist Åstrand
f3d6a71320 add hxtool_hex
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 20:29:27 +00:00
Love Hörnquist Åstrand
6250ffe2b8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-22 14:43:55 +00:00
Love Hörnquist Åstrand
7d3572d5f0 use top_builddir for libasn1.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19484 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-22 14:43:23 +00:00
Love Hörnquist Åstrand
b25a73eff1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19314 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 19:13:26 +00:00
Love Hörnquist Åstrand
ebcbf5f119 (print_certificate): print serial number.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19313 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 19:13:10 +00:00
Love Hörnquist Åstrand
b15afd6054 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 19:08:07 +00:00
Love Hörnquist Åstrand
05a31a062b (no): add S=stateOrProvinceName
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 19:03:44 +00:00
Love Hörnquist Åstrand
59238c7f99 Remember to p11_put_session in the failure cases too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 18:42:42 +00:00
Love Hörnquist Åstrand
7a0fadc477 (_hx509_private_key_assign_rsa): set a default sig alg
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-09 12:56:34 +00:00
Love Hörnquist Åstrand
fa270376d8 Pass in hx509_signature_rsa to key collector
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-09 12:18:09 +00:00
Love Hörnquist Åstrand
1f4452b34e (try_decrypt): pass down AlgorithmIdentifier that key uses to do sigatures
so there is no need to hardcode RSA into this function.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19299 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-09 12:13:21 +00:00
Love Hörnquist Åstrand
c2633ac58b Pass filename to the parse functions and use it in the error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19296 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 02:35:19 +00:00
Love Hörnquist Åstrand
64e2e55060 regen, this time with openssl 0.9.8x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 02:22:06 +00:00
Love Hörnquist Åstrand
e3d4ff2f14 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19293 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 00:48:28 +00:00
Love Hörnquist Åstrand
53256a007f make a note that we MUST check info.proxyPolicy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19291 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 00:02:10 +00:00
Love Hörnquist Åstrand
188770ff73 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19290 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:48:54 +00:00
Love Hörnquist Åstrand
184d8c9f29 fix errorstring for PROXY_CERT_NAME_WRONG
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19289 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:46:58 +00:00
Love Hörnquist Åstrand
2728037bfe regen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19288 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:46:06 +00:00
Love Hörnquist Åstrand
e825c5107c test proxy cert (third level)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19287 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:43:21 +00:00
Love Hörnquist Åstrand
9d3e385800 EXTRA_DIST: add data/proxy10-child-child-test.{key,crt}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:42:16 +00:00
Love Hörnquist Åstrand
13438750b1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19285 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:41:53 +00:00
Love Hörnquist Åstrand
72a670336e Fix names and restrictions on the proxy certificates
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:41:06 +00:00
Love Hörnquist Åstrand
71e4dc1497 Clairfy and make proxy cert handling work for multiple levels, before
it was too restrictive. More helpful error message.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19283 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:39:26 +00:00
Love Hörnquist Åstrand
7ea26d8dc4 (check_key_usage): print subject, not issuer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 22:41:26 +00:00
Love Hörnquist Åstrand
eecdea2e20 (check_key_usage): tell what keyusages are missing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 22:35:27 +00:00
Love Hörnquist Åstrand
d987d9258d Split OtherName printing code to a oid lookup and print function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 20:37:57 +00:00
Love Hörnquist Åstrand
c693f4cd8e AltNames: Print all diffrent names of a GeneralName
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 17:20:09 +00:00
Love Hörnquist Åstrand
800d5b5cc8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:37:53 +00:00
Love Hörnquist Åstrand
6621f45c1f (Time2string): print hour as hour not min
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:34:53 +00:00
Love Hörnquist Åstrand
801dd6cd8a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19272 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:30:46 +00:00
Love Hörnquist Åstrand
4e70f181f9 CLEANFILES += test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19271 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:30:09 +00:00
Love Hörnquist Åstrand
5e5521c9e1 Include <pkinit_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:16:46 +00:00