EUCA-5301

fails if no cert keys are defined. Added additional check