From 7f140cdf9ca6f5f75be04d8357f2e7d0a7a37993 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 12 Dec 2013 21:52:25 -0800 Subject: [PATCH] website: more docs on getting the key --- website/source/docs/builders/googlecompute.markdown | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/website/source/docs/builders/googlecompute.markdown b/website/source/docs/builders/googlecompute.markdown index 9bc183c52..136f4e0f9 100644 --- a/website/source/docs/builders/googlecompute.markdown +++ b/website/source/docs/builders/googlecompute.markdown @@ -38,8 +38,17 @@ Follow the steps below: a private key. Note the password for the private key! This private key is your _client private key_. -These two files you downloaded are necessary for Packer to talk to -Google Compute Engine. +Finally, one last step, you'll have to convert the `p12` file you +got from Google into the PEM format. You can do this with OpenSSL, which +is installed standard on most Unixes: + +``` +$ openssl pkcs12 -in -nocerts -passin pass:notasecret \ + -nodes -out private_key.pem +``` + +The client secrets JSON you downloaded along with the new "private\_key.pem" +file are the two files you need to configure Packer with to talk to GCE. ## Basic Example