Skip to content

Conversation

onobc
Copy link
Contributor

@onobc onobc commented Nov 29, 2019

Closes gh-17944

Followed similar approach as in org.springframework.boot.web.embedded.jetty.SslServerCustomizer by wrapping the returned key managers with a version that supports looking up by alias. It was one level deeper as Netty passes the KeyManagerFactory, not the KeyManagers down into the bowels of SSL. With this change, the KeyManagerFactory actually returns the wrapped KeyManagers via its SPI.

Verified that an invalid alias name does the same exception at runtime as reported by #16168. They are in parity w/ this change.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 29, 2019
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 4, 2019
@wilkinsona wilkinsona added this to the 2.1.x milestone Dec 4, 2019
@wilkinsona wilkinsona changed the title Add key-alias support for Netty. server.ssl.key-alias is ignored when configuring Netty Dec 4, 2019
@wilkinsona wilkinsona self-assigned this Dec 5, 2019
@wilkinsona wilkinsona modified the milestones: 2.1.x, 2.1.11 Dec 5, 2019
wilkinsona pushed a commit that referenced this pull request Dec 5, 2019
wilkinsona added a commit that referenced this pull request Dec 5, 2019
@wilkinsona wilkinsona closed this in 3e2b466 Dec 5, 2019
@wilkinsona
Copy link
Member

@Bono007 Thank you very much for making your first contribution to Spring Boot. The proposed changes have been merged into 2.1.x, 2.2.x, and master.

philwebb added a commit that referenced this pull request Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants