Bug 956816 - deserialize keypairs

Just a step on the path.  Nice easy review.