The QA previously took in the entire certificate file, along with the
private key. As this is really not necessary, change it to be more
conservative.
Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Lisa Velden <velden@google.com>
master = qa_config.GetMasterNode()
# Load RAPI certificate from master node
- cmd = ["cat", qa_utils.MakeNodePath(master, pathutils.RAPI_CERT_FILE)]
+ cmd = ["openssl", "x509", "-in",
+ qa_utils.MakeNodePath(master, pathutils.RAPI_CERT_FILE)]
# Write to temporary file
_rapi_ca = tempfile.NamedTemporaryFile()