I have a few steps to do this, but after executing the below steps still I'm getting the same Version.
ubuntu@ip-XXXX:~$ openssl version -v
OpenSSL 1.0.1f 6 Jan 2014
ubuntu@ip-XXXX:~$ sudo wget http://www.openssl.org/source/openssl-1.0.2g.tar.gz
ubuntu@ip-XXXX:~$ sudo tar -xvzf openssl-1.0.2g.tar.gz
ubuntu@ip-XXXX:~$ cd openssl-1.0.2g
ubuntu@ip-XXXX:~$ sudo ./config
ubuntu@ip-XXXX:~$ sudo make install
ubuntu@ip-XXXX:~$ sudo ln -sf /usr/local/ssl/bin/openssl openssl-1.0.2g
ubuntu@ip-XXXX:~$ openssl version -v
OpenSSL 1.0.1f 6 Jan 2014
Actually I excluded the results, but I didn't face any errors. Can you people give some inputs to me ?
Yes, Finally I got the solution. I did in two cases.
OpenSSL 1.0.1f to OpenSSL 1.0.2g
OpenSSL 1.0.1g to OpenSSL 1.0.2l
In first case update, gcc, make installations are required if you don't have in your machines. In case any Questions? please comment.