0
0
Fork 0
Commit Graph

37 Commits

Author SHA1 Message Date
Gibheer c2115003a1 remove missing command from output
diff was never implemented
2022-08-15 22:53:16 +02:00
Gibheer d01892150e rework program flow
This commit is a complete rebuild of pkictl. Before everything was all
over the place and adding new commands was kind of a hassle.

Now each command has its own file and can be adjusted on a command
basis. Options are still used by the same name, but can now use
different descriptions.
2016-10-01 21:56:29 +02:00
Gibheer ebdfe46386 the documentation has to go above the package
This makes the documentation in the main.go readable on the godoc.org
website and through the godoc command.
2015-07-24 12:44:43 +02:00
Gibheer 2aa1793bb5 add package documentation to main.go 2015-07-24 12:42:52 +02:00
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 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 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 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 97baed49b8 remove unused import 2015-03-22 20:03:12 +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 c0cc30089f fixes small typo 2015-03-18 21:40:08 +01:00
Gibheer 0eb655d42d add a --help option to avoid an error message 2015-03-18 21:39:49 +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 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 1c621c063c add comment to function 2015-02-19 20:54:47 +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 579435cfbb activate main help again
Activate the main help again.
2015-02-17 22:33:54 +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 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
Gibheer f74ed0fda2 split stream opening into two functions
This way it is easier to open files for reading and writing.
2015-01-19 12:13:13 +01:00
Gibheer 68167a5891 add signing and verifying of messages
With this it is possible to sign a message with a private key and verify
it with a public key.
The only problem is, that it is currently not compatible with openssl
yet.
2015-01-16 11:23:14 +01:00
Gibheer 7097d3b058 replace PrivateKey with crypto.Signer 2015-01-15 06:51:45 +01:00
Gibheer 73a07e7665 add api for public keys
This enables pkictl to generate public keys from private keys in the rsa
and ecdsa format.
2015-01-14 21:42:37 +01:00
Gibheer dac4b27f74 move private key loading to private_key file 2015-01-02 11:40:32 +01:00
Gibheer dfc9472452 remove old code from comments 2014-12-24 11:49:30 +01:00
Gibheer dd9d6eb8bb move sign request handling into own file 2014-12-24 11:48:45 +01:00
Gibheer 9a173e0019 split private key generation into own file 2014-12-24 11:43:18 +01:00
Gibheer 8ce2c7dcf1 basic CSR management done, fields still missing 2014-12-24 10:45:08 +01:00
Gibheer 05038898a1 load private key when creating a CSR 2014-10-28 21:21:30 +01:00
Gibheer f96f57ae15 the header for ecdsa must be EC 2014-10-27 22:43:01 +01:00
Gibheer b78544da1c add rsa private keys 2014-10-27 22:42:52 +01:00
Gibheer 0f9264579e initial commit with ecdsa working 2014-10-27 21:55:43 +01:00