modified code to include SSL cert + key