aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-25reformat code with gofmtGibheer5-621/+708
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 certificatesGibheer2-5/+64
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-24first parameter of args ignoredGibheer1-1/+1
When prsing the flags, instead of parsing everything given, only the rest was parsed.
2015-03-23rename to better distinguish between cert und csrGibheer1-2/+2
2015-03-23rename FlagCertificateDataGibheer2-5/+5
This makes it easier to distinguish between the csr data and cert data.
2015-03-22remove unused importGibheer1-1/+0
2015-03-21rework the parameter managementGibheer2-262/+280
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-21add documentation for the commandGibheer1-6/+13
2015-03-19add command flag parserGibheer1-0/+112
This is a small command flag parser hacked away in a couple hours. It is built after cobra (https://github.com/spf13/cobra), but with some small details changed. Instead of breaking with the go flag API (single and double dashes) this uses the golang flags package. This means, that single character flags do not work, but in this case it wouldn't make much sense to replace long clear argument names with short nothing saying arguments (-p for --private-key or --public-key?). This should definitely help with the help and error messages.
2015-03-18fixes small typoGibheer1-1/+1
2015-03-18add a --help option to avoid an error messageGibheer1-0/+1
2015-03-16certificate generation is inGibheer3-45/+73
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 generationGibheer3-13/+151
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 messagesGibheer3-10/+78
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 comment to functionGibheer1-0/+1
2015-02-19add message signing againGibheer2-20/+54
This adds again the possibility to sign messages through the API.
2015-02-17activate main help againGibheer1-3/+3
Activate the main help again.
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 nicerGibheer2-11/+23
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 supportGibheer3-8/+14
This adds all options to create and store a public key.
2015-02-15adjust library pathGibheer3-3/+3
2015-02-15make rsa check boundaryGibheer1-1/+7
2015-02-15redesign cliGibheer10-702/+284
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-11remove stale readme fileGibheer1-6/+0
2015-02-04add description in each file what it doesGibheer5-0/+18
2015-02-04rename files to reflect main functionGibheer2-0/+0
2015-02-04only add ips and names when they are setGibheer1-4/+8
If these options are not set, they would produce invalid values in the resulting csr.
2015-02-03add last missing fieldsGibheer1-1/+20
This adds the last missing fields of the pkix.Name and also adds a loop which converts all fields from comma separated list to an array.
2015-01-19rename readmeGibheer1-0/+0
2015-01-19add readme and todo fileGibheer2-0/+78
2015-01-19fix LICENSE and add AUTHORS fileGibheer2-22/+14
2015-01-19extend stream capabilitiesGibheer2-12/+115
With this commit, both signing and verification get stream/file support to read and write messages and signatures from and to files.
2015-01-19split stream opening into two functionsGibheer1-7/+17
This way it is easier to open files for reading and writing.
2015-01-16remove debug outputGibheer1-2/+0
2015-01-16add signing and verifying of messagesGibheer3-7/+172
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-15add missing importGibheer1-0/+1
2015-01-15fix typo and missing file closeGibheer1-1/+3
2015-01-15replace PrivateKey with crypto.SignerGibheer3-10/+4
2015-01-14add api for public keysGibheer3-3/+58
This enables pkictl to generate public keys from private keys in the rsa and ecdsa format.
2015-01-02add dns names and ip addresses with testsGibheer2-11/+125
2015-01-02move private key loading to private_key fileGibheer2-46/+45
2014-12-24add license and readmeGibheer2-0/+30
2014-12-24remove old code from commentsGibheer1-26/+0
2014-12-24move sign request handling into own fileGibheer2-55/+64
2014-12-24split private key generation into own fileGibheer2-84/+100
2014-12-24basic CSR management done, fields still missingGibheer1-11/+48
2014-10-28load private key when creating a CSRGibheer1-3/+71
2014-10-27the header for ecdsa must be ECGibheer1-1/+1
2014-10-27add rsa private keysGibheer1-3/+15