name = detailed-url;
descrip = "Print detailed URLs";
disabled;
- enable = "no";
+ disable = "no";
doc = "";
};
$ p11tool --list-tokens
@end example
-To store a private key and a certificate in a token run:
+To view all objects in a token use:
@example
-$ p11tool --login --write --url "pkcs11:URL" --load-privkey key.pem --label "Mykey"
-$ p11tool --login --write --url "pkcs11:URL" --load-certificate cert.pem --label "MyCert"
+$ p11tool --login --list-all --url "pkcs11:TOKEN-URL"
@end example
-To view all objects in a token use:
+To store a private key and a certificate in a token run:
@example
-$ p11tool --login --list-all --url "pkcs11:TOKEN-URL"
+$ p11tool --login --write --url "pkcs11:URL" --load-privkey key.pem --label "Mykey"
+$ p11tool --login --write --url "pkcs11:URL" --load-certificate cert.pem --label "MyCert"
@end example
_EOT_;
};
sec_param = OPT_ARG(SEC_PARAM);
}
+ if (debug > 0)
+ {
+ fprintf(stderr, "Private: %s\n", ENABLED_OPT(PRIVATE)?"yes":"no");
+ fprintf(stderr, "Trusted: %s\n", ENABLED_OPT(TRUSTED)?"yes":"no");
+ fprintf(stderr, "Login: %s\n", ENABLED_OPT(LOGIN)?"yes":"no");
+ fprintf(stderr, "Detailed URLs: %s\n", ENABLED_OPT(DETAILED_URL)?"yes":"no");
+ fprintf(stderr, "\n");
+ }
+
switch (action)
{
case ACTION_PKCS11_LIST: