I have a short-lived client process that talks to the server through SSL. A process is often called and runs only for a short time (usually less than 1 second). This process is intended to be used as part of a shell script used to perform large tasks and can be called quite often.
The SSL confirmation that it runs every time it starts shows up as a significant performance bottleneck in my tests, and I would like to reduce this if possible.
One thing that comes to mind is to take the session identifier and store it somewhere (sort of like a cookie) and then reuse it on the next call, however it makes me feel awkward as I think there will be some security issues around that.
So I have a few questions
- It is a bad idea?
- Is this possible with OpenSSL?
- Are there any better ways to speed up the SSL connectivity process?
source share