regenerate

abstract suspend fun regenerate(): Result<Unit>(source)

Discards the current PKI and issues a fresh one, restarting the listener if it is running. Every previously exported data package stops working; the user must export and re-import a new one.