The documentation states that RestClientSsl can be injected to customize a RestClient: https://docs.spring.io/spring-boot/docs/3.2.0-SNAPSHOT/reference/htmlsingle/#io.rest-client.restclient.ssl

However, when using this code:

@Service
public class MyService {

    private final RestClient restClient;

    public MyService(RestClient.Builder restClientBuilder, RestClientSsl ssl) {
        this.restClient = restClientBuilder.baseUrl("https://example.org").apply(ssl.fromBundle("mybundle")).build();
    }

}

this fails with:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 1 of constructor in com.example.restclientcustomizer.MyService required a bean of type 'org.springframework.boot.autoconfigure.web.client.RestClientSsl' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.boot.autoconfigure.web.client.RestClientSsl' in your configuration.

There's an implementation named AutoConfiguredRestClientSsl in our codebase, but it is not provided as a bean.