Nowadays, seamless communication between applications is a critical necessity. Real-time applications ensure that clients (and also servers) get updates from server-side applications as they happen with minimum delay. The sooner you get data, the quicker you can react and make decisions.

To retrieve new data, methods such as short polling…


File Transfer Protocol (FTP) is a communication standard that allows transferring files from/to servers over a computer network. FTP client is the one that establishes the connection between the host computer and the remote FTP server. …


Let’s see how to implement a simple echo websocket service from GO language, NodeJs and Ballerina language.

  1. Go lang code

In Go language the most used library for websocket is the Gorilla websocket library. Following is a echo service written using that.

Invoking the service

2. NodeJs service example code

I have chosen this websocket NPM package for this example.

Invoking the service


Keystores are used in two different ways,
If the keystore contains private keys and public certificates that are signed by the private key which are used to authenticate themselves to the connecting party, that is called a keystore.
And if the keystore contains trusted SSL certificates, that is called a truststore.
We…


https://introvertedengineer.com/2018/06/11/ssl-certificate-validation-failing/

To have a secure connection between the client and server, you need to enable Transport Layer Security (TLS) which is the predecessor of Secure Socket Layer(SSL). Both are frequently referred as SSL. From this article, we will be focusing on ways of which Ballerina client can call HTTPS back-ends.

Ballerina…


In today’s world, the trend is writing and exposing services in a simple and lightweight manner. So REST over HTTP is almost always the basis for modern microservices development and communications.

But still, there is a considerable amount of APIS that support SOAP and SOAP has unique security features that…


Once a certificate is issued by a certificate authority(CA), CA gives a validity period for the certificate and the certificate is expected to be valid for that entire validity period. After issuing a certificate, CA does not have any capability to take it back. So in order to revoke/cancel a…


Assume that we want to retrieve some elements from the payload excluding the namespaces.

We can do this in different ways.

1. If it is a payload defined by ourselves, we can define the payload with an empty namespace.

EX:

<Entries xmlns="">
<Entry>
<name>Olivia</name>
<userId>1</userId>
<age>25</age>
</Entry>
</Entries>

And we…


This is to give an idea of how to set up OpenSSL to use OCSP. We will look into how to generate certificates, get their OCSP response from the created OCSP server and also we’ll see how to revoke certificates.

Nowadays a lot of servers and clients provide support for…


[Ballerina] Enable OCSP stapling in Ballerina

Once a certificate is issued by a certificate authority(CA), CA gives a validity period for the certificate and the certificate is expected to be valid for that entire validity period. After issuing a certificate, CA does not have any capability to take it back. So in order to revoke/cancel a…

Bhashinee Nirmali

Associate Technical Lead @ WSO2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store