I have experience with certificate authentication in IIS and generating client certificates using makecert util. After generating it could be downloaded by user and installed for future usage of auth.
Please clarify task.
As I understand you need create simple app to authenticate and generate certs.
This means that we need create some registration UI, some DB to store registration info etc.