For private keys, both in PEM and DER format, we will use PKCS#8. This patch corrects our DER format so it is now PKCS#8. Also, move the secret type logic into translation methods and complete the unit tests. Closes-Bug: #1445575 Change-Id: Ifacbc496e1120b5593345ca0d90a5fa2fadb3465