Commit Graph

1735 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
ab5ec24f71 (hx509_ca_tbs_add_eku): filter out dups
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19887 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 12:29:06 +00:00
Love Hörnquist Åstrand
419060e44f add env.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 12:21:33 +00:00
Love Hörnquist Åstrand
8ddc5a6aa6 Remove abort, add error handling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 12:13:37 +00:00
Love Hörnquist Åstrand
342aad4138 add hx509_env
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 11:18:33 +00:00
Love Hörnquist Åstrand
6811e9609f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 01:27:58 +00:00
Love Hörnquist Åstrand
f6cbb2eaa5 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 01:02:57 +00:00
Love Hörnquist Åstrand
4b12f3487c less printing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 01:01:53 +00:00
Love Hörnquist Åstrand
0d0948cd9e test name expansion
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 01:01:15 +00:00
Love Hörnquist Åstrand
a7ffead44c add hx509_name_expand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19879 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 01:00:06 +00:00
Love Hörnquist Åstrand
7604f5b544 key-value pair help functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19878 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 00:58:39 +00:00
Love Hörnquist Åstrand
3669c75ddd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:47:24 +00:00
Love Hörnquist Åstrand
63d4fbb416 Don't issue certs with subject DN that is NULL and have no SANs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:46:52 +00:00
Love Hörnquist Åstrand
f978746627 Fix previous test.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:45:29 +00:00
Love Hörnquist Åstrand
6efa69a5d3 Check there is a SAN if subject DN is NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:44:34 +00:00
Love Hörnquist Åstrand
5d38f1ea53 test email, null subject dn
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19873 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:40:45 +00:00
Love Hörnquist Åstrand
950f043ab4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19872 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:03:17 +00:00
Love Hörnquist Åstrand
e59e71f307 Allow setting parameters to private key generation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:01:58 +00:00
Love Hörnquist Åstrand
4401882f8c test issue cert with jid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 08:54:34 +00:00
Love Hörnquist Åstrand
dfc6e11891 (eval_types): add jid if user gave one
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 08:53:25 +00:00
Love Hörnquist Åstrand
1739d7acbe (certificate-sign): add --jid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 08:44:58 +00:00
Love Hörnquist Åstrand
68f12e3ffb (hx509_ca_tbs_add_san_jid): Allow adding id-pkix-on-xmppAddr OtherName.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 08:44:18 +00:00
Love Hörnquist Åstrand
cd5e0fba78 Print id-pkix-on-xmppAddr OtherName.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 08:43:20 +00:00
Love Hörnquist Åstrand
8a02fd12ed no random, no RSA/DH tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19858 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 20:48:34 +00:00
Love Hörnquist Åstrand
45e6b61402 (info): print status of random generator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 20:39:26 +00:00
Love Hörnquist Åstrand
e233ae5146 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:37:52 +00:00
Love Hörnquist Åstrand
e5b1642018 remove files created by tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:37:15 +00:00
Love Hörnquist Åstrand
91a0892b93 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:36:29 +00:00
Love Hörnquist Åstrand
82a45c7036 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:55:09 +00:00
Love Hörnquist Åstrand
396d442179 make printinfo char * argument const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:38:23 +00:00
Love Hörnquist Åstrand
f865e18161 move _hx509_set_digest_alg from cms.c to crypto.c since its only used there.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:36:03 +00:00
Love Hörnquist Åstrand
9efb0df9f1 remove no longer used stuff, move set_digest_alg here from cms.c since
its only used here.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19836 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:35:25 +00:00
Love Hörnquist Åstrand
18c21c9cc4 Avoid shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:28:42 +00:00
Love Hörnquist Åstrand
7405b522a1 add data/key2.der
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19826 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 02:49:44 +00:00
Love Hörnquist Åstrand
acb8c4e906 add data/test-nopw.p12 to EXTRA_DIST
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19823 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 00:20:44 +00:00
Love Hörnquist Åstrand
ab01c4b0b4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19822 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:15:46 +00:00
Love Hörnquist Åstrand
e797c5a42c BasicConstraints vs criticality bit is complicated and not really
possible to evaluate on its own, silly RFC3280.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:11:34 +00:00
Love Hörnquist Åstrand
72a7e4b1cb Make basicConstraints critical if this is a CA.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:07:07 +00:00
Love Hörnquist Åstrand
f4b0e6fcea fix the version vs extension test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 22:02:10 +00:00
Love Hörnquist Åstrand
d8423fa525 Even more validation checks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19817 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:53:45 +00:00
Love Hörnquist Åstrand
5bf1bd2a7d More validation checks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19816 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:45:56 +00:00
Love Hörnquist Åstrand
5b9b07461e (hx509_name_cmp): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:44:25 +00:00
Love Hörnquist Åstrand
0b44e8aede x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 19:44:52 +00:00
Love Hörnquist Åstrand
a905f0338c (collect_private_key): Missing CKA_MODULUS is ok too (XXX why should
these be fetched given they are not used).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 19:43:35 +00:00
Love Hörnquist Åstrand
312f87ccaf x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 11:47:01 +00:00
Love Hörnquist Åstrand
6e070754c2 rename all files to PEM files, since that is what they are.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 11:46:46 +00:00
Love Hörnquist Åstrand
6b967f571f copy out the key with the self signed CA cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 11:45:54 +00:00
Love Hörnquist Åstrand
80977a02f6 Factor out private key operation out of the signing, operations, support import, export, and generation of private keys. Add support for writing PEM and PKCS12 files with private keys in them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 10:52:13 +00:00
Love Hörnquist Åstrand
de625c0116 regen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 09:31:45 +00:00
Love Hörnquist Åstrand
d009417320 Generate a no password pkcs12 file.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19772 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 09:31:15 +00:00
Love Hörnquist Åstrand
0e65b27793 Check for internal ASN1 encoder error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-08 18:45:03 +00:00