Commit Graph

1339 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
c7da6b6c61 Drop most of the pkcs11 files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19731 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:57:54 +00:00
Love Hörnquist Åstrand
986dc89efb x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:43:27 +00:00
Love Hörnquist Åstrand
dfcfc51c66 add hx509_ca_tbs_set_serialnumber
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:40:46 +00:00
Love Hörnquist Åstrand
00a6e317eb test reissueing ca certificate (xxx time validAfter).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:37:14 +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
22133f82f9 (issue-certificate): Allow setting serialNumber (needed for reissuing
certificates), Change --key argument to --out-key.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:35:39 +00:00
Love Hörnquist Åstrand
3928ceb728 Headerfile <pkcs11.h> is now freestanding, remove pkcs11u.h.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 15:32:05 +00:00
Love Hörnquist Åstrand
9a686ce1d1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 14:56:29 +00:00
Love Hörnquist Åstrand
ec05142c07 Replace with Marcus Brinkmann of g10 Code GmbH pkcs11 headerfile that is compatible with GPL (file taken from scute)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19719 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 14:52:44 +00:00
Love Hörnquist Åstrand
3572e7735e Test to generate key and use them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19706 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:55:05 +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
d0c2319998 add generate key commands
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:52:37 +00:00
Love Hörnquist Åstrand
3abdc16e2a (_hx509_request_to_pkcs10): PKCS10 needs to have a subject
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19702 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:20:11 +00:00
Love Hörnquist Åstrand
2ce57212dc Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:32:08 +00:00
Love Hörnquist Åstrand
33ba9fdf6d (hx509_ca_tbs_set_proxy): allow negative pathLenConstraint to signal no limit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:31:07 +00:00
Love Hörnquist Åstrand
64565477d5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 02:02:21 +00:00
Love Hörnquist Åstrand
2c45be2461 Try all formats on the binary file before giving up, this way we can
handle binary rsa keys too.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 02:01:41 +00:00
Love Hörnquist Åstrand
a6aeb8b42c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 02:00:50 +00:00
Love Hörnquist Åstrand
25ad1864fd another key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 01:56:37 +00:00
Love Hörnquist Åstrand
4395508a07 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:18:35 +00:00
Love Hörnquist Åstrand
98c7ce6ffc (hxtool_LDADD): Add libasn1.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-03 23:17:53 +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
a10d6c1a04 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19611 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:37:31 +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
ab8e83ff53 regen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:34:20 +00:00
Love Hörnquist Åstrand
b4ca985700 Fix test for proxy certs chain length, it was too restrictive.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19608 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:31:28 +00:00
Love Hörnquist Åstrand
9ab3c38b3a (proxy_cert) make length 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:28:44 +00:00
Love Hörnquist Åstrand
e094c5275d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:11:17 +00:00
Love Hörnquist Åstrand
8424dc4081 Issue a long living cert.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19605 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:10:52 +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
7cabe3475e allow setting notBefore and notAfter.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19603 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 01:08:56 +00:00
Love Hörnquist Åstrand
e1cdaad627 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19602 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:10:37 +00:00
Love Hörnquist Åstrand
3a3aa6762c Test generation of proxy certificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19601 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:08:25 +00:00
Love Hörnquist Åstrand
99f8bea461 Allow generation of proxy certificates, always include
BasicConstraints, fix error codes.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:07:46 +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
93abfd3634 add new error, PARSING_NAME_FAILED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:05:39 +00:00
Love Hörnquist Åstrand
87b7533d02 make hx509_parse_name take a hx509_context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:04:54 +00:00
Love Hörnquist Åstrand
2dcbc1ab7e Split building RDN to a separate function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:04:11 +00:00
Love Hörnquist Åstrand
e86331e9a1 clean test_ca files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19595 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 21:48:34 +00:00
Love Hörnquist Åstrand
64242b5769 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19594 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 17:52:37 +00:00
Love Hörnquist Åstrand
977e13f429 test issuing self-signed and CA certificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19593 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 17:52:08 +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
eaaff166a5 Add bits to allow issuing CA certificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 17:49:35 +00:00
Love Hörnquist Åstrand
086e7f3847 use new OCSPSigning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 17:09:06 +00:00
Love Hörnquist Åstrand
2719a5f038 Add Subject Key Identifier.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 16:10:19 +00:00
Love Hörnquist Åstrand
0c6f8e6994 Add Add Authority Key Identifier.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 15:58:13 +00:00