blob: 705e9695fc45c2010cdda0b40ceac7b2e5a9c8d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
helpnode "Certtool help\nUsage : certtool [options]"
#int action;
option (s, generate-self-signed) { $action=0; } "Generate a self-signed certificate."
option (c, generate-certificate) { $action=4; } "Generate a signed certificate."
option (u, update-certificate) { $action=7; } "Update a signed certificate."
option (p, generate-privkey) { $action=1; } "Generate a private key."
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."
#char *privkey;
option (load-privkey) STR "FILE" { $privkey = $1 } "Private key file to use."
#char *request;
option (load-request) STR "FILE" { $request = $1 } "Certificate request file to use."
#char *cert;
option (load-certificate) STR "FILE" { $cert = $1 } "Certificate file to use."
#char *ca_privkey;
option (load-ca-privkey) STR "FILE" { $ca_privkey = $1 } "Certificate authority's private key file to use."
#char *ca;
option (load-ca-certificate) STR "FILE" { $ca = $1 } "Certificate authority's certificate file to use."
option (i, certificate-info) { $action = 2; } "Print information on a certificate."
option (k, key-info) { $action = 6; } "Print information on a private key."
#int pkcs8;
option (8, pkcs8) { $pkcs8=1 } "Use PKCS #8 format for private keys."
#int bits;
option (bits) INT "BITS" { $bits = $1 } "specify the number of bits for key generation."
#char *outfile;
option (outfile) STR "FILE" { $outfile = $1 } "Output file."
#char *infile;
option (infile) STR "FILE" { $infile = $1 } "Output file."
#int debug;
option (d, debug) INT "LEVEL" { $debug = $1 } "specify the debug level. Default is 1."
option (h, help) { gaa_help(); exit(0); } "shows this help text"
option (v, version) { certtool_version(); exit(0); } "shows the program version"
init { $bits = 1024; $pkcs8 = 0; $privkey = NULL; $ca=NULL; $ca_privkey = NULL;
$debug=1; $request = NULL; $infile = NULL; $outfile = NULL; $cert = NULL; }
|