public ConsulClient createSecureClient(boolean trustAll, PemTrustOptions trustOptions) { ConsulClientOptions options = config(ConsulCluster.writeToken(), true) .setTrustAll(trustAll) .setPemTrustOptions(trustOptions); return creator.apply(options); }