MOMCertImport.exe tool error: ‘The application failed to initialize properly (0xc0150002). Click OK to terminate the application.’

If trying to inject a certificate with the MOMCertImport.exe tool on your server and you get the error

MOMCertImport.exe tool error: ‘The application failed to initialize properly (0xc0150002). Click OK to terminate the application.’

Try the following  workaround which worked for me:-

Process 1: Finding out the serial number of the certificate:

  1. Open the MMC, add a snap-in. Select Certificates for the Computer Account. Go to Personal, expand it and select the certificate OpsMgr will use.
  2. Double click it and go to the second tab, ‘Details‘.
  3. The second entry has the field name ‘Serial Number’. Write it down or use the button ‘Copy To File’. The latter is the best option since no errors will be made with the serial number.

Process 2: Adding the found serial number in REVERSE order in the registry:

  1. Open the registry
  2. Go to HKLM\Software\Microsoft\Microsoft OperationsManager\3.0\Machine Settings
  3. Create here a new sub-regkey with a Binary Value, named ChannelCertificateSerialNumber
  4. Put here the earlier found serial number of the Certificate. Remember to REVERSE the order. Do not use spaces, these will be added automatically. Example: suppose the serial number is 34 56 85, you must enter it as 85 56 34. DO NOT REVERSE THE ORDER OF THE DIGITS IN THE PAIRS!

Now the health service can be restarted. Soon enough EventID 20053 will show up, telling that the certificate has been successfully loaded. When EventID 20066 is displayed instead of it, the wrong serial number has been entered into the registry. Go back and double check it.

This worked a treat for me when the MOMCertImport.exe would not work.

Advertisements
This entry was posted in Misc Stuff. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s