Skip to content

Commit ebb0ff8

Browse files
author
Dave Syer
committed
Merge remote-tracking branch 'origin/1.3.x'
2 parents c85948a + 9c0679b commit ebb0ff8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ public CachingConnectionFactory rabbitConnectionFactory(RabbitProperties config)
109109
RabbitProperties.Ssl ssl = config.getSsl();
110110
if (ssl.isEnabled()) {
111111
factory.setUseSSL(true);
112+
if (ssl.getAlgorithm() != null) {
113+
factory.setSslAlgorithm(ssl.getAlgorithm());
114+
}
112115
factory.setKeyStore(ssl.getKeyStore());
113116
factory.setKeyStorePassphrase(ssl.getKeyStorePassword());
114117
factory.setTrustStore(ssl.getTrustStore());

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ public static class Ssl {
274274
*/
275275
private String trustStorePassword;
276276

277+
/**
278+
* The SSL algorithm to use (e.g. TLSv1.1). Default is set automatically by the
279+
* rabbit client library.
280+
*/
281+
private String algorithm;
282+
277283
public boolean isEnabled() {
278284
return this.enabled;
279285
}
@@ -314,6 +320,14 @@ public void setTrustStorePassword(String trustStorePassword) {
314320
this.trustStorePassword = trustStorePassword;
315321
}
316322

323+
public String getAlgorithm() {
324+
return this.algorithm;
325+
}
326+
327+
public void setAlgorithm(String sslAlgorithm) {
328+
this.algorithm = sslAlgorithm;
329+
}
330+
317331
}
318332

319333
public static class Cache {

0 commit comments

Comments
 (0)