How to obtain an Foreigner’s Registration Card - RNE?

The Brasilian www.gov.br Is a bit confusing.

if anyone has acquired their RNE please share where and how you obtained it.

Thanks!