Mod note, split from this sticky topic:
https://forums.openvpn.net/viewtopic.php?f=36&t=30395
mdibella wrote
Remove the Bag Attributes sections from the CA, cert, and key. You only what the BEGIN to END lines.
Also make sure when you export the PKCS12 to PEM format what you don't enter a key encrypt password. Only enter the decrypt password.
I removed "Bag attributes" but still receive the same error, I think the error could be at the start of the code (ovpn part), because if you see my initial post I removed some rows ... could these rows be necessary?