Commit Graph

209 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
ddfe47e5e1 Update hx509_cms_create_signed_1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 15:50:48 +00:00
Love Hörnquist Åstrand
a6726ae8e3 Pass in context to _hx509_parse_private_key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:00:29 +00:00
Love Hörnquist Åstrand
44b1d77058 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 23:15:08 +00:00
Love Hörnquist Åstrand
1f571d04ab Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18801 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 23:13:35 +00:00
Love Hörnquist Åstrand
4d08f3ebbf Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 22:30:45 +00:00
Love Hörnquist Åstrand
e9d03bde61 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 21:00:05 +00:00
Love Hörnquist Åstrand
24e79ac572 Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 20:32:41 +00:00
Love Hörnquist Åstrand
df5da7edfe Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 20:12:42 +00:00
Love Hörnquist Åstrand
1f77265f5b Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18784 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:55:08 +00:00
Love Hörnquist Åstrand
5407ae308c Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18780 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:42:20 +00:00
Love Hörnquist Åstrand
561f5ca9c9 use a sensable content type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:19:43 +00:00
Love Hörnquist Åstrand
f13d32a019 Add missing argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:09:58 +00:00
Love Hörnquist Åstrand
dcd2ea0684 unbreak.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:08:59 +00:00
Love Hörnquist Åstrand
ff2823a4e6 Leak less memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 19:08:10 +00:00
Love Hörnquist Åstrand
2c56bfb0e8 leak a little bit less
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18772 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 18:58:52 +00:00