@agl @filippo I am trying to persuade Oracle not to add half-assed support for PKCS#8 password-encrypted private keys to their draft PEM encoder API. I notice that Go has not implemented such support yet either.
Is support planned for Go? And if so, do you have thoughts on what the API should look like?
My preference is if they are going to implement it, to not allow a user-specified password at all but instead to generate a secure one and set the iteration count to 1.