What are and how do I use OpenSSL BIO pairs?

Brian picture Brian · Jan 13, 2009 · Viewed 14.6k times · Source

What exactly is a BIO pair in OpenSSL, and how is it intended to be used? I've already checked the OpenSSL docs, but any details are few and far between.

Answer

Bill the Lizard picture Bill the Lizard · Jan 13, 2009

A BIO in OpenSSL is similar to a File handle. You use a pair of them to communicate with each other securely like you would with two sockets. The best explanation I've found is here.

I also got a lot of use out of Herong Yang's site a few months ago when I had to write an application using OpenSSL. The sections on creating and signing certificates using OpenSSL and keytool were a big help when it came to testing my application.