Fix setting ssl when key_file is defined

This patch fixes logic around ssl cert generation to skip it
when key_file is defined.

Related-Prod: PROD-17052

Change-Id: Ib61908d462be1ab47f9de91d377cc435ecd47134
1 file changed