update to include certificate for encryption.

work in progress