@manishaa5646486 when you apply SSL you have the liberty to choose on what port you want to run AEM with HTTPS, you can check within your org to confirm which port is open at the network level else any random port which you choose needs to be opened(in case blocked)

Generically we keep 443 or 8443. If you have author and publish on same instance(mostly local or dev) you need to keep author and publish port different.