__gaa_helpsingle('u', "update-certificate", "", "Update a signed certificate.");
__gaa_helpsingle('p', "generate-privkey", "", "Generate a private key.");
__gaa_helpsingle('q', "generate-request", "", "Generate a PKCS #10 certificate request.");
- __gaa_helpsingle('e', "verify-chain", "", "Verify a certificate chain. The last certificate in the chain must be a self signed one.");
+ __gaa_helpsingle('e', "verify-chain", "", "Verify a PEM encoded certificate chain. The last certificate in the chain must be a self signed one.");
__gaa_helpsingle(0, "load-privkey", "FILE ", "Private key file to use.");
__gaa_helpsingle(0, "load-request", "FILE ", "Certificate request file to use.");
__gaa_helpsingle(0, "load-certificate", "FILE ", "Certificate file to use.");
int ret;
fputs( input_str, stderr);
- fgets( input, sizeof(input), infile);
+ fgets( input, sizeof(input), stdin);
if (strlen(input)==1) /* only newline */ return;
int ret;
fputs( input_str, stderr);
- fgets( input, sizeof(input), infile);
+ fgets( input, sizeof(input), stdin);
if (strlen(input)==1) /* only newline */ return;
char input[128];
fputs( input_str, stderr);
- fgets( input, sizeof(input), infile);
+ fgets( input, sizeof(input), stdin);
if (strlen(input)==1) /* only newline */ return 0;
static char input[128];
fputs( input_str, stderr);
- fgets( input, sizeof(input), infile);
+ fgets( input, sizeof(input), stdin);
input[strlen(input)-1] = 0;
char input[128];
fputs( input_str, stderr);
- fgets( input, sizeof(input), infile);
+ fgets( input, sizeof(input), stdin);
if (strlen(input)==1) /* only newline */ return 0;
option (q, generate-request) { $action=3; } "Generate a PKCS #10 certificate request."
-option (e, verify-chain) { $action=5; } "Verify a certificate chain. The last certificate in the chain must be a self signed one."
+option (e, verify-chain) { $action=5; } "Verify a PEM encoded certificate chain. The last certificate in the chain must be a self signed one."
#char *privkey;
option (load-privkey) STR "FILE" { $privkey = $1 } "Private key file to use."