So here on the aws instance we have tried to connect spring kafka with msk where it works with local kafka. next there is no ssl . I tried telnet its running. But while running the application this exception comes.
Our cluster of msk is in same vpc . all the broker connection configuration strings are fine
Map<String, Object> configProps = new HashMap<>();
configProps.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, env.getProperty("spring.kafka.producer.bootstrap-servers"));
configProps.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
configProps.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);