move openssl require to where it's needed

Change-Id: I9bafddd34c07b44c514257ba674a63e86c365167
added missing require

Change-Id: I3d22a5b07e80119fc8184506e28f8ce28170717c
fixed incorrect argument for StagingTask

Change-Id: I6cd95c225bcc1aea0c78529844b06d15088f683a