Remove old files

sudo rm /etc/ssl/certs/ssl-cert-snakeoil.pem && rm /etc/ssl/private/ssl-cert-snakeoil.key

Generate new sert

sudo make-ssl-cert generate-default-snakeoil --force-overwrite

Reload Apache

sudo service apache2 reload