Authenticate

The service uses a certificate for authentication. A client needs to export the public key from the server to a certificate file (for example, eftlink.crt).

You then need to import the certificate into your client application's trust store. If you use a HTML and Javascript based client, you can import the certificate into your Operating System's trust root Certificate Authority (CA).

How to export the server's certificate:

The following steps assume that you already created a keystore with the certificate in it and it is signed by known CA such as Verisign. You can also use a self signed certificate but it is not recommended.

Steps:
  1. Using keytool, open a terminal and navigate to any directory.

  2. Type the command below. Enter the password of your keystore.

    The file eftlinkmobile.crt is created on the same directory.

    keytool -export -keystore C:\eftlinkmobile\eftlinkmobile.keystore -file eftlinkmobile.crt

    In the above command, it assumes that your web socket server is installed in C:\eftlinkmobile and your keystore filename is eftlinkmobile.keystore.