updated openssl plugin to new private/public key API, use encoder framework