Hi,
In a web application, if it doesn't have a domain name (like a web service for example), can you still add a SSL certificate to a IP address?
If yes, how?
Hi,
In a web application, if it doesn't have a domain name (like a web service for example), can you still add a SSL certificate to a IP address?
If yes, how?
There's some good information here: https://www.thawte.com/ssl-digital-certificates/technical-support/browserfaqs.html
I'm almost certain you need a domain to go with the SSL.
EDIT
You can. From a purely yes/no perspective, as Hop correctly notes, you can. However should you might be a better question. Or if you are self signing.
The correct answer was first provided by Hop
Original:
You purchase them by domain name only. There is a difference even between www.site.com and site.com
I know you can get wildcard certs, and of course you can generate your own, but purchasing them to use on a public web it is by domain name only.
Could your webservice be a subdomain of another domain? Ex: server.site.com. Then you can certainly put a SLL cert on that.
You can easily put an ip address into the CN (common name) of an ssl certificate by the same procedure you would use for an ordinary hostname (ssl certificates contain hostnames, not domain names).
How this is done precisely in your case cannot be answered, since you have not stated what your case is.
Browsers should match the CN of a certificate against what the user has put into the URL bar. If it's an ip address, it's an ip address.
This site offers certificates for IP addresses. You wouldn't be able to (properly) use a certificate for a domain name for an IP address, however.