private SSLFactory getSSLFactoryIfRequired() throws Exception {
    boolean sslRequired = new NettyConfig(verifiableProperties).nettyServerEnableSSL
        || new ClusterMapConfig(verifiableProperties).clusterMapSslEnabledDatacenters.length() > 0;
    return sslRequired ? SSLFactory.getNewInstance(new SSLConfig(verifiableProperties)) : null;
  }
Return a {@link SSLFactory} if the ssl is required when connecting to ambry-server.
@return {@link SSLFactory}.
@throws Exception Any unexpected exception
ambry-tools/src/main/java/com/github/ambry/account/AccountTool.java