[IOT-1475] Remove DER/PEM mixing in ParseChain