High pressure ellipsometry (HPE) method was developed for determining the index of refraction of opaque materials in a diamond anvil cell (DAC). A main difficulty in DAC-based HPE, namely, the pressure-induced birefringence developed in the diamond, was overcome enabling the extraction of the ellipsometric parameters of the sample. The method used was based on the fact that an unpolarized light is unaffected by a retarding optical element and thus reduces the number of unknown parameters in the problem. Because of technical difficulties in using unpolarized light, a linear combination of orthogonal polarizations was applied. In the experimental procedure, multiangle measurements of the ellipsometric parameter ψ are collected at each pressure and the data is fitted together with a measurement of the near normal reflectivity, in order to extract the complex index of refraction. As a test case, this procedure was used to measure the high pressure index of refraction of iron up to 30 GPa for light with wavelengths of 532 and 633 nm. From the index of refraction as a function of pressure the diamond-iron interface emissivity for different pressures was derived and from which the phase transition α → ε could be identified and characterized. The emissivity increases with pressure both at the α (0-9 GPa) and the ε phase (21-30 GPa) however decreases at the mixed α - ε (9-21 GPa) range. From the imaginary part of the index of refraction the pressure dependence of the energy skin depth of iron was extracted. It was found that the energy skin depth increases by an order of magnitude at 30 GPa relative to ambient conditions.