mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
x509: crypto tool: add alg
This commit is contained in:
parent
ed4db457c9
commit
075b59ecaa
1 changed files with 11 additions and 0 deletions
|
@ -124,6 +124,10 @@ int main(int argc, const char **argv)
|
|||
|
||||
goto bail2;
|
||||
}
|
||||
|
||||
if ((p = lws_cmdline_option(argc, argv, "--alg")))
|
||||
lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, strlen(p));
|
||||
|
||||
lwsl_info("JWK version of trusted cert:\n");
|
||||
lws_jwk_dump(&jwk);
|
||||
lws_jwk_destroy(&jwk);
|
||||
|
@ -137,6 +141,10 @@ int main(int argc, const char **argv)
|
|||
goto bail3;
|
||||
}
|
||||
lwsl_info("JWK version of cert:\n");
|
||||
|
||||
if ((p = lws_cmdline_option(argc, argv, "--alg")))
|
||||
lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, strlen(p));
|
||||
|
||||
lws_jwk_dump(&jwk);
|
||||
/* only print public if he doesn't provide private */
|
||||
if (!lws_cmdline_option(argc, argv, "-p")) {
|
||||
|
@ -163,6 +171,9 @@ int main(int argc, const char **argv)
|
|||
goto bail3;
|
||||
}
|
||||
|
||||
if ((p = lws_cmdline_option(argc, argv, "--alg")))
|
||||
lws_jwk_strdup_meta(&jwk, JWK_META_ALG, p, strlen(p));
|
||||
|
||||
lwsl_info("JWK version of cert + privkey:\n");
|
||||
lws_jwk_dump(&jwk);
|
||||
lwsl_notice("Issuing Cert + Private JWK on stdout\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue