Also
if dataskq rewrite does not work, also check if /etc/pure-ftpd.pem is valid. On some installations, it may have an invalid chain consisting of a self-signed localhost certificate and a mix CA intermediate and root certificates
# grep -- '--BEGIN C' /etc/pure-ftpd.pem|wc
9 18...