aboutsummaryrefslogtreecommitdiff
path: root/flags.go
AgeCommit message (Collapse)AuthorFilesLines
2015-07-19use public key instead of private keyGibheer1-1/+1
This fixes a bug where the public key was not used to verify messages.
2015-04-10add ca load optionGibheer1-3/+24
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-03-30split certificate stuff into own fileGibheer1-200/+1
This moves the complicated certificate flag handling into its own file to make it a bit easier to handle.
2015-03-30split out all private key related functionsGibheer1-97/+0
This moves all private key related functions out into a separate file to get flags.go smaller.
2015-03-30add extended key usage for certificatesGibheer1-10/+45
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-30add basic key usage flag to certificatesGibheer1-4/+37
2015-03-25reformat code with gofmtGibheer1-388/+422
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-24add start and end date to certificatesGibheer1-0/+62
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-23rename to better distinguish between cert und csrGibheer1-2/+2
2015-03-23rename FlagCertificateDataGibheer1-4/+4
This makes it easier to distinguish between the csr data and cert data.
2015-03-21rework the parameter managementGibheer1-150/+199
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-16certificate generation is inGibheer1-8/+44
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-05finally add certificate sign request generationGibheer1-12/+103
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-02-20add comments to flag variablesGibheer1-3/+7
2015-02-20add verification of messagesGibheer1-0/+35
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-19add message signing againGibheer1-0/+21
This adds again the possibility to sign messages through the API.
2015-02-17make help even nicerGibheer1-2/+11
When calling --help, this change prints only the usage itself. Before it was calling the help, then continued parsing everything.
2015-02-17make error messages nicerGibheer1-4/+16
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-17add public key supportGibheer1-1/+1
This adds all options to create and store a public key.
2015-02-15adjust library pathGibheer1-1/+1
2015-02-15make rsa check boundaryGibheer1-1/+7
2015-02-15redesign cliGibheer1-0/+168
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.