summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-26 19:00:25 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-26 19:00:25 +0100
commit5aaa73e32fce6eaf2ee8e47a1242e3ef5191b6c0 (patch)
treef72439a5be916ee9efe890b50bca1e23f3fb4e46
parent45d438f2951bc574482a13f83fe290a9a053ed22 (diff)
downloadeurephia-5aaa73e32fce6eaf2ee8e47a1242e3ef5191b6c0.tar.gz
eurephia-5aaa73e32fce6eaf2ee8e47a1242e3ef5191b6c0.tar.xz
eurephia-5aaa73e32fce6eaf2ee8e47a1242e3ef5191b6c0.zip
certs command: Added help texts for -A and -D
-rw-r--r--eurephiadm/commands/certificates.c45
1 files changed, 44 insertions, 1 deletions
diff --git a/eurephiadm/commands/certificates.c b/eurephiadm/commands/certificates.c
index ca17c67..7656f45 100644
--- a/eurephiadm/commands/certificates.c
+++ b/eurephiadm/commands/certificates.c
@@ -53,7 +53,50 @@
#include "../parse_certificate_files.h"
void display_certs_help(int page) {
- printf("Help page not implemented yet\n");
+ switch( page ) {
+ case 'A':
+ printf("The add mode will register a new certificate.\n\n"
+ " -d | --depth Certificate depth, required.\n"
+ " -D | --digest SHA1 fingerprint/digest of the new certificate\n"
+ " -C | --common-name Common name (CN) field of the certificate\n"
+ " -O | --organisation Organisation (O) field of the certificate\n"
+ " -E | --email e-mail address (emailAddress) of the certificate\n"
+ "\n"
+ "Usually the certificate depth value needs to be 0, if you are registering user\n"
+ "account certificates. CA certificates usually havea value bigger than 0.\n\n");
+#ifdef HAVE_OPENSSL
+ printf("If you have the certificate file available, you can use the following\n"
+ "options to retrieve the needed information directly from a certificate file.\n\n"
+ " -f | --certfile File name of the certificate file.\n"
+ " -p | --pkcs12 If the file is in PKC#12 format.\n"
+ "\n"
+ "The default format is PEM format, unless --pkcs12 is given. These two options\n"
+ "cannot be used together with -D, -C, -O or -E. But the certificate depth must\n"
+ "be given to indicate the certificate depth.\n\n");
+#endif
+ break;
+ case 'D':
+ printf("The delete mode will remove a certificate from the certificate database.\n\n"
+ " -i | --certid Indicates a unique certificate ID\n"
+ " -d | --digest A unique SHA1 fingerprint/digest value\n"
+ " -C | --common-name Common Name (CN) field of a certificate\n"
+ " -O | --organisation Organisation (O) field of a certificate\n"
+ " -E | --email e-mail address (emailAddress) of a certificate\n"
+ "\n"
+ "You can use any of these parameters to indicate a search criteria for the\n"
+ "certificate (or certificates) you want to delete. You will be provided with\n"
+ "a list over certificates which matches your search criteria and you will need\n"
+ "to approve the deletion of the matching certificate(s).\n\n");
+ break;
+ default:
+ printf("Available modes for the certficate command are:\n\n"
+ " -A | --add Register a new certificate\n"
+ " -D | --delete Delete a registered certficate\n"
+ " -l | --list List all registered certificates\n"
+ " -s | --show Show certificate details\n"
+ " -h | --help <mode> Help about a specific mode\n\n");
+ break;
+ }
}
void help_Certificates() {