If you have two different domain names with SSL certificates hosted on one server with one IP address then you will get a warning on the client. Warning is like this: SSL certificate is issued to another domain name. It means that it is not possible to have multiple https virtual hosts on apache web server using one IP address.
How to Create a Self Signed Certificate for Apache
This article explains how to generate a self signed certificate for Apache web server.