0
0
Fork 0
Commit Graph

22 Commits

Author SHA1 Message Date
Gibheer 1b8ac82754 use public key instead of private key
This fixes a bug where the public key was not used to verify messages.
2015-07-19 17:33:35 +02:00
Gibheer 38c320124c add ca load option
This commit changes to API a bit. The following renames were done:

* csr-path => csr
* ca       => is-ca

The following option was added

* ca

With that option it is now possible to add a certificate to sign the
newly created certificate.
2015-04-10 21:29:28 +02:00
Gibheer 37423989c8 split certificate stuff into own file
This moves the complicated certificate flag handling into its own file
to make it a bit easier to handle.
2015-03-30 21:52:39 +02:00
Gibheer 9ba6a88449 split out all private key related functions
This moves all private key related functions out into a separate file to
get flags.go smaller.
2015-03-30 21:34:05 +02:00
Gibheer b4c4c1f18a add extended key usage for certificates
This adds the extended key usage and makes the certificates useable in
the wild.
The only thing missing are the CRL distribution points and the policy
identifiers. These will get added after the code in flags.go is cleaned
up. At the moment, it is far too messy.
2015-03-30 20:45:08 +02:00
Gibheer 855fde6d68 add basic key usage flag to certificates 2015-03-30 20:20:58 +02:00
Gibheer ba5a59931e reformat code with gofmt
Yes, I know that this breaks the history search, but it had to be done
sooner or later. I also adjusted my editor to follow the guidelines more
closely.
2015-03-25 20:43:18 +01:00
Gibheer bb41ff218a add start and end date to certificates
This adds the start and end date flags for certificate generation and
also a flag to define, if the resulting certificate should be a CA or
not.
Next step in the implementation is to define the key usages.
2015-03-24 21:21:02 +01:00
Gibheer 3e34c17449 rename to better distinguish between cert und csr 2015-03-23 09:45:39 +01:00
Gibheer 885340ef8f rename FlagCertificateData
This makes it easier to distinguish between the csr data and cert data.
2015-03-23 09:43:20 +01:00
Gibheer d983dbae54 rework the parameter management
With this change it is now possible to provide help messages for all
commands. This will help to further cleanup and minimize the code base.
2015-03-21 18:50:55 +01:00
Gibheer 31bf8bc739 certificate generation is in
The hole certificate sign request and certificate creation process was
pulled into pki, which made pkictl a bit smaller in code.

There are still some things missing, but the initial support for
certificates is done!
2015-03-16 17:15:29 +01:00
Gibheer 52102b0f24 finally add certificate sign request generation
This adds finally a way to create certificate sign requests. There are
still some options missing, but it is coming together.

With the next step, the ccertificate data container will probably be put
into the pki library.
2015-03-05 21:37:52 +01:00
Gibheer 2954be520d add comments to flag variables 2015-02-20 20:44:22 +01:00
Gibheer 075865c417 add verification of messages
This commit adds back the possibility to verify a message through a
public key and a signature. It works a little bit different than before
as it always prints the base64 version, but it makes it easier to use.
2015-02-20 10:45:42 +01:00
Gibheer f80f34d89c add message signing again
This adds again the possibility to sign messages through the API.
2015-02-19 20:50:06 +01:00
Gibheer f2a349608f make help even nicer
When calling --help, this change prints only the usage itself. Before it
was calling the help, then continued parsing everything.
2015-02-17 22:21:45 +01:00
Gibheer a81c103572 make error messages nicer
This changes the error message so that not the program help is printed
but instead the specific submenu help. This should result in much faster
and better understanding of the problematic situation.
2015-02-17 22:15:21 +01:00
Gibheer 470d21409b add public key support
This adds all options to create and store a public key.
2015-02-17 21:44:10 +01:00
Gibheer b022e8ab4c adjust library path 2015-02-15 21:10:44 +01:00
Gibheer 02749d1d5e make rsa check boundary 2015-02-15 21:09:22 +01:00
Gibheer 16eb14db9f redesign cli
This is a major rebuilding of the CLI. The library part is split out
into pkilib and the cli handles only the communication with the user,
I/O and the library.
The API will still look the same, but the code should be much better to
grasp. Instead of repeating everything, more will be grouped together
and reused.
2015-02-15 01:34:25 +01:00