Commit Graph

124 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
8c9a5ca83a Allow setting serialNumber (needed for reissuing certificates)
Change --key argument to --out-key.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:36:08 +00:00
Love Hörnquist Åstrand
fffd555b71 handle other keys the pkcs10 requested keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:53:46 +00:00
Love Hörnquist Åstrand
c0ecd4ce02 (pcert_verify): Fix format string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:16:00 +00:00
Love Hörnquist Åstrand
7a0bda61c8 Allow setting path length
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19610 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:37:10 +00:00
Love Hörnquist Åstrand
760f9d2de4 add --lifetime to ca command.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:10:00 +00:00
Love Hörnquist Åstrand
6a8868770e Allow generation of proxy certificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:07:00 +00:00
Love Hörnquist Åstrand
623c3467da Add bits to allow issuing self-signed and CA certificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19592 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 17:50:39 +00:00
Love Hörnquist Åstrand
2ad9f89060 Add dnsname and rfc822 SANs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 15:03:10 +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
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
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
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
444753045a use unsigned int as counter to fit better with the asn1 compiler
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 03:59:34 +00:00
Love Hörnquist Åstrand
4fd7cabf44 (crypto-available): add --type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 12:15:00 +00:00
Love Hörnquist Åstrand
bf35f1a1bc Expand crypto-select
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 12:10:22 +00:00
Love Hörnquist Åstrand
e0a99a740d Add crypto-select and crypto-available.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 10:40:06 +00:00