Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions docs/src/main/asciidoc/native-and-ssl-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,17 @@ They enable the native SSL support for your native executable.

As SSL is ipso facto the standard nowadays, we decided to enable its support automatically for some of our extensions:

* the SmallRye REST client extension,
* the Agroal connection pooling extension,
* the Jaeger extension.
* the Agroal connection pooling extension (`quarkus-agroal`),
* the Amazon DynamoDB extension (`quarkus-amazon-dynamodb`),
* the Hibernate Search Elasticsearch extension (`quarkus-hibernate-search-elasticsearch`),
* the Jaeger extension (`quarkus-jaeger`),
* the Keycloak extension (`quarkus-keycloak`),
* the Kubernetes client extension (`quarkus-kubernetes-client`),
* the Mailer extension (`quarkus-mailer`),
* the MongoDB extension (`quarkus-mongodb-client`),
* the Neo4j extension (`quarkus-neo4j`),
* the REST client extension (`quarkus-rest-client`).


As long as you have one of those extensions in your project, the SSL support will be enabled by default.

Expand Down Expand Up @@ -200,7 +208,7 @@ You can for example modify your `Dockerfile.native` as follows to copy the requi
FROM quay.io/quarkus/ubi-quarkus-native-image:{graalvm-version} as nativebuilder
RUN mkdir -p /tmp/ssl-libs/lib \
&& cp /opt/graalvm/jre/lib/security/cacerts /tmp/ssl-libs \
&& cp /opt/graalvm/jre/lib/amd64/libsunec.so /tmp/ssl-libs/lib/
&& cp /opt/graalvm/jre/lib/amd64/libsunec.so /tmp/ssl-libs/lib/

FROM registry.access.redhat.com/ubi8/ubi-minimal
WORKDIR /work/
Expand Down
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/sending-emails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The following table lists the properties that can be configured:
| port | Integer | the SMTP server port | `25`
| username | String | the username |
| password | String | the password |
| ssl | Boolean | Enables or disables SSL. If enabled, you must also link:native-and-ssl-guide.html[set `quarkus.ssl.native` to true] when building a native image. | `false`
| ssl | Boolean | Enables or disables SSL | `false`
| trust-all | Boolean | Set whether to trust all certificates | `false`
| max-pool-size | Integer | Configures the maximum number of open connections to the mail server | `10`
| own-host-name | String | The hostname to be used for `HELO/EHLO` and the `Message-ID` |
Expand Down Expand Up @@ -250,7 +250,7 @@ class MailTest {

If you want to use the Gmail SMTP server, first create a dedicated password in `Google Account > Security > App passwords` or go to https://myaccount.google.com/apppasswords.

When done, you can configure your Quarkus application by adding the following properties to your `application.properties`:
When done, you can configure your Quarkus application by adding the following properties to your `application.properties`:

With TLS:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.LaunchModeBuildItem;
import io.quarkus.deployment.builditem.ShutdownContextBuildItem;
Expand All @@ -29,6 +30,11 @@ AdditionalBeanBuildItem registerMailers() {
.build();
}

@BuildStep
ExtensionSslNativeSupportBuildItem activateSslNativeSupport() {
return new ExtensionSslNativeSupportBuildItem(FeatureBuildItem.MAILER);
}

@BuildStep
void registerAuthClass(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
// We must register the auth provider used by the Vert.x mail clients
Expand Down