Create security.js

There were issues with the security.js file extracting the certificate base64 hash from the pem file. It should look for the begin and end certificate keywords in the pem file to extract properly.
Merge pull request #3 from mesrob-axs/patch-1

Create security.js