In databases it is possible to specify whether the connection should use encryption, with postgres for example, use sslmode=require for this.
However, the aapanel database manager does not have a way of informing it to be used, I ask you to insert such functionality or simply allow them to add their own connection url, in which they would have these parameters