For Let's Encrypt — simply issue a new certificate on the new server. For paid SSL — copy the .crt and .key files.
apt install certbot python3-certbot-nginx -y
certbot --nginx -d example.com -d www.example.com
The private key (.key) is confidential. Store it with 600 permissions and never transmit it over unencrypted channels.