I have a private key in DER format. I trying to convert it to PEM format. While converting I do
-----BEGIN PRIVATE KEY-----
Base64.encode(privateKey,.getEncoded());
-----END PRIVATE KEY-----
But in some example I see, below lines right after the header.
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,F2D4E6438DBD4EA8
Do they have any significance ? Is that also should be added while converting from DER to PEM ?