the certificate doesn't care about ports one way or another. I've used (self-signed) certificate with a number of different ports.
/Bart