No more use openssl to create uniq id, use tempfile.