Search code examples
securityssl-certificatex509certificateself-signed

Self sign certificate with different server


I have generated a self sign ssl certificate for my server, can I use the same certificate with different server?


Solution

  • Well SSL certificates are usually used to protect domains and not ip addresses. You can try to generate a SSL certificate for an ip address.

    You can enter the ip address in the common names field when generating Certificate Signing Request (CSR). But the same SSL certificate may not work on another ip address. A similar issue was discussed on: Is it possible to have SSL certificate for IP address, not domain name?

    You can create your own host name and enter it in the hosts file of your operating system. Then you will have to create one self signed SSL certificate for this domain. You can use this SSL certificate on as many servers as you want.

    If your server has a public ip address, then you should consider purchasing a domain from a domain provider such as GoDaddy.