basic implementation for openssl demo interactions