Wire the TUI Days field through to build-client-full
This commit is contained in:
@@ -1244,7 +1244,8 @@ class CursesApp:
|
||||
self, stdscr, cn: str, email: str, is_renewal: bool,
|
||||
) -> bool:
|
||||
"""Form → generate → deliver. Returns False if user cancelled."""
|
||||
form = show_cert_form(stdscr, cn=cn, email=email, cn_readonly=is_renewal)
|
||||
form = show_cert_form(stdscr, cn=cn, email=email, days=CERT_DAYS,
|
||||
cn_readonly=is_renewal)
|
||||
if not form.confirmed:
|
||||
return False
|
||||
|
||||
@@ -1288,7 +1289,7 @@ class CursesApp:
|
||||
try:
|
||||
build_client_full(EASYRSA_DIR, EASYRSA_PKI_DIR,
|
||||
final_cn, form.password, CA_PASSPHRASE,
|
||||
email=form.email)
|
||||
email=form.email, days=form.days)
|
||||
except EasyRSAError as exc:
|
||||
if revoked:
|
||||
self._error(
|
||||
|
||||
Reference in New Issue
Block a user