Commit Graph

140 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
cb61e8d474 drop time_now, its part of the verify context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:23:38 +00:00
Love Hörnquist Åstrand
7776ed30a9 Add language to support querying certificates to find a match. Support constructs like "1.3.6.1.5.2.3.5" IN %{certificate.eku} AND %{certificate.subject} TAILMATCH "C=SE"".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22677 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-13 17:35:49 +00:00
Love Hörnquist Åstrand
35a3b73c9c Support verifying PEM signature files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-26 12:28:23 +00:00
Love Hörnquist Åstrand
0ff6dbc8bb Add matching on EKU, validate EKUs, add hxtool matching glue, add check. Adapted from pach from Tim Miller of Mitre
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22538 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-27 13:05:47 +00:00
Love Hörnquist Åstrand
9266224639 use hx509_free_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-17 01:03:43 +00:00
Love Hörnquist Åstrand
a2c72dc392 Adapt to new request handling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 14:21:34 +00:00
Love Hörnquist Åstrand
addd9c68a9 Use hx509_err to print error and exit.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21338 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 12:40:56 +00:00
Love Hörnquist Åstrand
e0bf16a61f use _hx509_request_print
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 12:18:14 +00:00
Love Hörnquist Åstrand
4e34f568f9 don't _hx509_abort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21330 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 11:09:55 +00:00
Love Hörnquist Åstrand
b376cf9ad6 Update to new hx509_pem_write().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 18:27:28 +00:00
Love Hörnquist Åstrand
d6310fff09 Enable writing out signed data as a pem attachment.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 16:49:12 +00:00
Love Hörnquist Åstrand
5db583358c Verify hostname and test max-depth.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 04:47:55 +00:00
Love Hörnquist Åstrand
1624d81f5f Use HX509_CMS_SIGATURE_ID_NAME.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-24 19:24:53 +00:00
Love Hörnquist Åstrand
401141607b Make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21177 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 14:53:20 +00:00
Love Hörnquist Åstrand
5e0b8a125f Added peap-server for to make windows peap clients happy.
k


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21175 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 14:08:36 +00:00
Love Hörnquist Åstrand
50e2be787d Unify parse_oid code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21172 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 05:09:37 +00:00
Love Hörnquist Åstrand
ae9c048776 Implement --content-type.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21168 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 00:11:25 +00:00
Love Hörnquist Åstrand
5c70b04159 Merge init of hx509_peer_info structure and allow it for cms-create-sd.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-06 20:49:14 +00:00
Love Hörnquist Åstrand
a5c1aa04ce (verify): Friendlier error message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 03:59:36 +00:00
Love Hörnquist Åstrand
789e4f5ac7 Leak less memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 23:04:48 +00:00
Love Hörnquist Åstrand
8aae4402f7 Add lifetime to crls.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20852 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 18:01:24 +00:00
Love Hörnquist Åstrand
0a3cbbe6b5 (certificate_copy): free lock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 13:59:55 +00:00
Love Hörnquist Åstrand
6ce83b9e50 (crl_sign): free lock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 05:11:43 +00:00
Love Hörnquist Åstrand
aa1c29af38 New command ocsp-verify, check if ocsp contains all certs and are
valid (exist and non expired).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 03:09:54 +00:00
Love Hörnquist Åstrand
b244ea47fd Sign CRL command.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 03:29:44 +00:00
Love Hörnquist Åstrand
644b44dbef Add statistic hook.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-01 22:02:28 +00:00
Love Hörnquist Åstrand
071db50a3f add --ms-upn and add more EKU's for pk-init client.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 02:44:39 +00:00
Love Hörnquist Åstrand
d7d356f871 add ca --domain-controller option, add secret key option to avaible.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 23:03:28 +00:00
Love Hörnquist Åstrand
1018087342 hook for testing secrety key algs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 18:43:48 +00:00
Love Hörnquist Åstrand
09acc9cae1 test crypto command
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 23:16:38 +00:00
Love Hörnquist Åstrand
a362011014 (crypto_select): stop memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20548 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-24 10:19:09 +00:00
Love Hörnquist Åstrand
8e7eb6103f (crypto_select): only free peer if it was used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 08:57:37 +00:00
Love Hörnquist Åstrand
10c3707b49 free template
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20407 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 20:36:35 +00:00
Love Hörnquist Åstrand
f6cdbe6393 free private key and tbs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 20:21:50 +00:00
Love Hörnquist Åstrand
af29f2c594 (hxtool_ca): free signer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20402 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 14:46:17 +00:00
Love Hörnquist Åstrand
b2852c4eb2 (crypto_available): free peer too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 14:14:06 +00:00
Love Hörnquist Åstrand
d124db5c13 (hxtool_ca): free subject name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 13:57:11 +00:00
Love Hörnquist Åstrand
aa7c813a59 (hxtool_ca): free SPKI
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 13:54:43 +00:00
Love Hörnquist Åstrand
bee46381d8 (hxtool_ca): free cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20397 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 13:53:09 +00:00
Love Hörnquist Åstrand
56b26bb2cc Add options to generate detached signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20169 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 22:45:55 +00:00
Love Hörnquist Åstrand
7c237a0685 Add ca --crl-uri.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 15:55:14 +00:00
Love Hörnquist Åstrand
b6379492f9 Try to help how to use this command.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20069 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 21:13:09 +00:00
Love Hörnquist Åstrand
98c0634251 Set num of bits before we generate the key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 22:11:12 +00:00
Love Hörnquist Åstrand
e660fb69bd Add certificate template processing, fix hx509_err usage.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-14 18:16:38 +00:00
Love Hörnquist Åstrand
ecd3180240 Add type email and add email eku when using option --email.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 12:30:13 +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
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
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
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