Please review the attached patch which addresses the following ticket:

This was tested as a successful installation of a Master CA and Cloned CA using a LunaSA HSM.