Through User Interface:

Through Power Shell script:

Set-SPEnterpriseSearchService -IgnoreSSLWarnings $true

Set-SPEnterpriseSearchService -IgnoreSSLWarnings $false