From: florian Date: Thu, 10 Oct 2024 09:39:35 +0000 (+0000) Subject: Always print account URI on first creation of an account key. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f2270df8abda6ff4ad6a750f5b036a15b3ba6bad;p=openbsd Always print account URI on first creation of an account key. This was hidden behind -v but it seems useful to always have this when creating a new account. As sthen points out in his previous commit: This is useful if you want to set a CAA DNS record restricting issuance to a specific user account. OK deraadt --- diff --git a/usr.sbin/acme-client/netproc.c b/usr.sbin/acme-client/netproc.c index 79dcadf3873..f67f8abc0b3 100644 --- a/usr.sbin/acme-client/netproc.c +++ b/usr.sbin/acme-client/netproc.c @@ -1,4 +1,4 @@ -/* $Id: netproc.c,v 1.36 2024/10/07 23:47:00 sthen Exp $ */ +/* $Id: netproc.c,v 1.37 2024/10/10 09:39:35 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -386,7 +387,7 @@ donewacc(struct conn *c, const struct capaths *p, const char *contact) if (c->kid != NULL) { if (stravis(&accturi, c->kid, VIS_SAFE) != -1) - dodbg("account key: %s", accturi); + printf("account key: %s\n", accturi); free(accturi); }