Rundeck作业通知Webhook证书问题



我有一个作业在成功或失败时发送通知。它使用Webhook选项。webhook是一个执行作业的Rundeck API。这是我的通知设置

我检查了rundeck.log。它有以下错误:

ERROR services.NotificationService [quartzScheduler_Worker-6] - Notification failed [onsuccess,succeeded,238621]; URL https://client-dns/api/33/job/cd3b3a1b-90c9-4c99-bf29-46c5aad1b4ff/run?authtoken=6XpW50hvZoPUTtlwucKGJ7ERKOxeJCTR&option.rd_exec_id=238621: Unable to POST notification after 1 tries: success for execution 238621 (succeeded): Error making request: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

如何解决此问题?我已经有了证书,但我该如何告诉rundeck使用它。提前感谢那些能帮助我的人。

您需要将webhook服务证书添加到Java cacert中,以使Rundeck能够识别。或者,如果您在SSL上使用Rundeck,您可以通过以下方式将该证书添加到Rundeck truststore文件中:

  1. 停止Rundeck服务。

  2. 提取服务证书:

echo -n | openssl s_client -connect your_service_host:your_service_port > cert.out

  1. 将其添加到Rundeck信任库文件中:

keytool -importcert -trustcacerts -file certs.out -alias my_service -keystore your/path/to/rundeck/truststore

  1. 启动Rundeck服务

最新更新