Using a self signed SSL certificate just for a web service

Sconz2

I have a web service that clients will have and I want the data that's sent to the server encrypted. To test this I used a self signed SSL certificate. I know that when you use a self signed cert and when you navigate to whatever address is using it that the web browser will warn you that it's unsafe etc.

I am wondering if I'm I going to run into any problems if I used this certificate instead of a verified one when the web service goes live?

Also I don't have a domain name for the server, so I am just going to use the IP address given by my ISP, is this ok to do so with the certificate, because everywhere I read about them people are talking about using them with domain names?

Drona

An SSL certificate is usually issued to a domain and is signed by an issuing authority. When a browser connects to a server the server presents its certificate to the client. The client then verifies the certificate by checking if the domain that it is accessing is the same one as mentioned in the certificate. Also, it verifies its trust chain. This means that the issuer's certificate should also be valid. If the issuer is not the root signing authority then the issuer's issuer's certificate is verified. And, ultimately the root signing authority should be trusted which means the root signing authority should be in your truststore. All major signing authorities like Verisign, Thawte etc are by default in the JDK trustore hence if you have a certificate signed by them then you do not have issues in the verification of your trust chain. If your certificate is signed by an authority that is not trusted then you need to import the issuer's certificate in your trust chain manually.

Now, when using a self signed certificate, the entity to whom the certificate is issued is itself is the root signing authority. And hence the certificate should be imported into your truststore manually. You need to do this to get your SSL handshake through. But this alone does not solve your problem. Since, you are not using any domain name, your IP is likely to be changed every time you restart your server if you are obtaining your server IP automatically through a DHCP server. If this is the case then even a trusted self signed certificate won't work once the IP changes. Because, the certificate is issued to an IP and once the IP changes the certificate would become invalid. To get around this you need to get a static IP address for your server from your network admin. Then generate a self signed certificate for your static IP. Then ask your clients to add your server certificate in their trust store.

This would be a bit tedious for your clients. But, if you have a fixed number of clients and the client machines are under your control then you could add the server certificate to the client trust store yourself. But, if your server is open to all or have a huge number of client then I would suggest to get a certificate signed by a well known and trusted certification authority. Again, you would still need to have a static IP irrespective of who signs your certificate unless your server gets a domain name.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Using a self signed SSL certificate just for a web service

From Dev

ssl with self signed certificate using python

From Dev

Heroku SSL using self signed certificate

From Dev

Determine if SSL certificate is self signed using Python

From Dev

Heroku SSL using self signed certificate

From Dev

Authenticating to an SSL secured WCF Service from a Winforms client using a self-signed certificate

From Dev

SSL - self signed certificate with wildcard

From Dev

self-signed SSL certificate using AFNetworking 2.3.1

From Dev

Using Apache-Commons-net to add a self signed SSL certificate

From Dev

self-signed SSL certificate using AFNetworking 2.3.1

From Dev

SSL certificate error: self signed certificate in certificate chain in using Twilio on my Laravel Website

From Dev

Swift SSL error with self signed certificate

From Dev

Ignore self-signed SSL certificate in fetch

From Dev

What counts as a self-signed SSL certificate?

From Dev

Import self signed ssl certificate .pem to firefox

From Dev

Trusted SSL certificate showing as self signed

From Dev

Importing a self-signed SSL certificate on MacOS

From Dev

Is a self signed SSL certificate less secure?

From Dev

UWP BackgroundDownloader with self signed SSL certificate

From Dev

bind self signed ssl certificate to port failed

From Dev

Twilio PHP - SSL certificate: self signed certificate in certificate chain

From Dev

SSL certificate problem: self signed certificate in certificate chain

From Dev

Develop a Chrome extension that overrides SSL certificate exception for a self signed certificate

From Dev

From wsdl to client java web service(Server has self signed certificate)

From Dev

How do I allow a user to trust and pin a self-signed SSL Certificate using AFNetworking in iOS

From Dev

Jenkins cannot connect to SonarQube server using HTTPS (HTTP + SSL) with self-signed certificate

From Dev

Creating self signed certificate - ./makecert using powershell

From Dev

SSL Certificate for Web Service in the Cloud

From Dev

Azure Web App calling on-prem service with Self-Signed SSL Cert

Related Related

  1. 1

    Using a self signed SSL certificate just for a web service

  2. 2

    ssl with self signed certificate using python

  3. 3

    Heroku SSL using self signed certificate

  4. 4

    Determine if SSL certificate is self signed using Python

  5. 5

    Heroku SSL using self signed certificate

  6. 6

    Authenticating to an SSL secured WCF Service from a Winforms client using a self-signed certificate

  7. 7

    SSL - self signed certificate with wildcard

  8. 8

    self-signed SSL certificate using AFNetworking 2.3.1

  9. 9

    Using Apache-Commons-net to add a self signed SSL certificate

  10. 10

    self-signed SSL certificate using AFNetworking 2.3.1

  11. 11

    SSL certificate error: self signed certificate in certificate chain in using Twilio on my Laravel Website

  12. 12

    Swift SSL error with self signed certificate

  13. 13

    Ignore self-signed SSL certificate in fetch

  14. 14

    What counts as a self-signed SSL certificate?

  15. 15

    Import self signed ssl certificate .pem to firefox

  16. 16

    Trusted SSL certificate showing as self signed

  17. 17

    Importing a self-signed SSL certificate on MacOS

  18. 18

    Is a self signed SSL certificate less secure?

  19. 19

    UWP BackgroundDownloader with self signed SSL certificate

  20. 20

    bind self signed ssl certificate to port failed

  21. 21

    Twilio PHP - SSL certificate: self signed certificate in certificate chain

  22. 22

    SSL certificate problem: self signed certificate in certificate chain

  23. 23

    Develop a Chrome extension that overrides SSL certificate exception for a self signed certificate

  24. 24

    From wsdl to client java web service(Server has self signed certificate)

  25. 25

    How do I allow a user to trust and pin a self-signed SSL Certificate using AFNetworking in iOS

  26. 26

    Jenkins cannot connect to SonarQube server using HTTPS (HTTP + SSL) with self-signed certificate

  27. 27

    Creating self signed certificate - ./makecert using powershell

  28. 28

    SSL Certificate for Web Service in the Cloud

  29. 29

    Azure Web App calling on-prem service with Self-Signed SSL Cert

HotTag

Archive