This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git
The following commit(s) were added to refs/heads/main by this push:
new a9d4bdaae getIssuerDN deprecated in favour of getIssuerX500Principal
(#1256)
a9d4bdaae is described below
commit a9d4bdaae6e40060415b6544a0db6f33834de11a
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Oct 22 17:29:40 2025 +0100
getIssuerDN deprecated in favour of getIssuerX500Principal (#1256)
---
.../pekko/stream/connectors/google/http/ForwardProxyHttpsContext.scala | 2 +-
.../stream/connectors/huawei/pushkit/ForwardProxyHttpsContext.scala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/google-common/src/main/scala/org/apache/pekko/stream/connectors/google/http/ForwardProxyHttpsContext.scala
b/google-common/src/main/scala/org/apache/pekko/stream/connectors/google/http/ForwardProxyHttpsContext.scala
index 1a09a17c4..20602c230 100644
---
a/google-common/src/main/scala/org/apache/pekko/stream/connectors/google/http/ForwardProxyHttpsContext.scala
+++
b/google-common/src/main/scala/org/apache/pekko/stream/connectors/google/http/ForwardProxyHttpsContext.scala
@@ -29,7 +29,7 @@ private[google] object ForwardProxyHttpsContext {
val certificate = x509Certificate(trustPemPath: String)
val sslContext = SSLContext.getInstance("SSL")
- val alias = certificate.getIssuerDN.getName
+ val alias = certificate.getIssuerX500Principal.getName
val trustStore = KeyStore.getInstance(KeyStore.getDefaultType)
trustStore.load(null, null)
trustStore.setCertificateEntry(alias, certificate)
diff --git
a/huawei-push-kit/src/main/scala/org/apache/pekko/stream/connectors/huawei/pushkit/ForwardProxyHttpsContext.scala
b/huawei-push-kit/src/main/scala/org/apache/pekko/stream/connectors/huawei/pushkit/ForwardProxyHttpsContext.scala
index 0036f2f18..e4d54a54d 100644
---
a/huawei-push-kit/src/main/scala/org/apache/pekko/stream/connectors/huawei/pushkit/ForwardProxyHttpsContext.scala
+++
b/huawei-push-kit/src/main/scala/org/apache/pekko/stream/connectors/huawei/pushkit/ForwardProxyHttpsContext.scala
@@ -46,7 +46,7 @@ private[pushkit] object ForwardProxyHttpsContext {
val certificate = x509Certificate(trustPem)
val sslContext = SSLContext.getInstance(SSL)
- val alias = certificate.getIssuerDN.getName
+ val alias = certificate.getIssuerX500Principal.getName
val trustStore = KeyStore.getInstance(KeyStore.getDefaultType)
trustStore.load(null, null)
trustStore.setCertificateEntry(alias, certificate)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]