juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
195 stars 111 forks source link

Socket Queue cryptographic keys exchange #30

Open scalpovich opened 6 years ago

scalpovich commented 6 years ago

Hi Igor, Hope you're doing well. i use SQ now it's really amazing. Thanks How can i implement a connection module to an HSM for the exchange of cryptographic keys to secure online transactions in currently architecture?

juks commented 6 years ago

Hi!

You can develop a new module, then add some event-based communnication with it. If you expect these keys to be used for upstream exchange encryption, check the following file where it is implemented:

https://github.com/juks/SocketQueue/blob/master/lib/socketServer/lib/upstream.js

Module example:

https://github.com/juks/SocketQueue/blob/master/lib/socketServer/lib/clientHttpServer.js

scalpovich commented 6 years ago

thanks for your revert ... i will try and get you back.

michelkal commented 5 years ago

Hi @noecodjo

Did you ever try this out? (I mean the key exchange module). I am trying to do that also... But not done anything yet. @juks Nice library, but I am having issue with passing JSON data over HTTP. Keep getting HTTP client error emitted at server object: Error: Parse Error , I am pretty sure the JSON correct.

juks commented 5 years ago

Hi!

This kind of error is emitted by Node.js HTTP library (https://github.com/juks/SocketQueue/blob/7fc6ed98866e235e1b8b585779c2bc35cfcac8ab/lib/socketServer/lib/clientHttpServer.js#L171). So please have some patience to debug it.