Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make certificate configurable #421

Closed
marcelmay opened this issue Feb 9, 2022 · 0 comments
Closed

Make certificate configurable #421

marcelmay opened this issue Feb 9, 2022 · 0 comments
Assignees
Labels
backport_1_6_x Backport to old bugfixing branch 1.6.x enhancement
Milestone

Comments

@marcelmay
Copy link
Member

marcelmay commented Feb 9, 2022

Currently GreenMail uses by default a self-signed, packaged 'greenmail.p12' certificate.

  • Allow configuring for custom provided certificate
  • Allow injecting custom certificate to GreenMail container

Details:

  • Extract greenmail.p12 in Dockerfile from JAR, so that it can be replaced/configured
  • Cache DummySSLServerSocketFactory.getDefault to avoid new creations
    for each secure server IMAPS/POP3S/SMTPS
  • Debug log where the PKCS12 store gets loaded from
  • Describe new greenmail.tls.keystore.file + greenmail.tls.keystore.password
    properties in site documentation
@marcelmay marcelmay self-assigned this Feb 17, 2022
@marcelmay marcelmay added this to the 2.0.0-alpha-3 milestone Feb 17, 2022
marcelmay added a commit that referenced this issue Feb 20, 2022
- Initial implementation, configurable via system properties
marcelmay added a commit that referenced this issue Feb 20, 2022
- Replaced example cert letsencryptisrgx1 with amazonrootca1,
  as it seems not available on CircleCi (openjdk 8u302)
@marcelmay marcelmay added the backport_1_6_x Backport to old bugfixing branch 1.6.x label Apr 2, 2022
marcelmay added a commit that referenced this issue Apr 3, 2022
Backport issue #421

- Initial implementation, configurable via system properties
marcelmay added a commit that referenced this issue Apr 3, 2022
Backport of #421

- Replaced example cert letsencryptisrgx1 with amazonrootca1,
  as it seems not available on CircleCi (openjdk 8u302)
marcelmay added a commit that referenced this issue Apr 3, 2022
Backport of #421

- Cache DummySSLServerSocketFactory.getDefault to avoid new creations
  for each secure server IMAPS/POP3S/SMTPS
- Debug log where the PKCS12 store gets loaded from
- Describe greenmail.tls.keystore.file + greenmail.tls.keystore.password
  properties in site documentation
- Extract greenmail.p12 in Dockerfile from JAR, so that it can be easily
  replaced/configured
marcelmay added a commit that referenced this issue Apr 3, 2022
Backport of #421

- Dockerfile: Replaced deprecated MAINTAINER with labels, use COPY
  instead of ADD
marcelmay added a commit that referenced this issue Apr 3, 2022
- Dockerfile: Replaced deprecated MAINTAINER with labels, use COPY
  instead of ADD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport_1_6_x Backport to old bugfixing branch 1.6.x enhancement
Projects
None yet
Development

No branches or pull requests

1 participant