@@ -263,4 +263,28 @@ chmod 400 /var/lib/secrets/certs.secret
263263 ones.
264264 </para>
265265 </section>
266+ <section xml:id="module-security-acme-fix-jws">
267+ <title>Fixing JWS Verification error</title>
268+
269+ <para>
270+ It is possible that your account credentials file may become corrupt and need
271+ to be regnerated. In this scenario lego will produce the error <literal>JWS verification error</literal>.
272+ The solution is to simply delete the associated accounts file and
273+ re-run the affected service(s).
274+ </para>
275+
276+<programlisting>
277+# Find the accounts folder for the certificate
278+systemctl cat acme-example.com.service | grep -Po 'accounts/[^:]*'
279+export accountdir="$(!!)"
280+# Move this folder to some place else
281+mv /var/lib/acme/.lego/$accountdir{,.bak}
282+# Recreate the folder using systemd-tmpfiles
283+systemd-tmpfiles --create
284+# Get a new account and reissue certificates
285+# Note: Do this for all certs that share the same account email address
286+systemctl start acme-example.com.service
287+</programlisting>
288+
289+ </section>
266290</chapter>