在渲染实例中使用HTML-PDF时SSL错误

发布于 2025-02-10 01:47:31 字数 1060 浏览 2 评论 0原文

我正在使用 html-pdf库以生成html的pdf文件在我的机器上工作得很好。但是,当试图在渲染上托管的项目的实例上使用它时,我会遇到以下错误:

Auto configuration failed
140113131916928:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
140113131916928:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140113131916928:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140113131916928:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

此问题的根似乎是SSL配置,由这个github问题 - 这个问题的答案似乎已经解决了他们的机器上的问题,但我不确定如何配置SSL以我的渲染实例。我也不确定是否可能,或者是否可以解决问题。对这个问题的任何洞察力都会非常有帮助!

I'm using the html-pdf library to generate PDF files from HTML, and it's working great on my machine. However, when attempting to use this on an instance of the project hosted on Render, I'm getting the following error:

Auto configuration failed
140113131916928:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
140113131916928:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140113131916928:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140113131916928:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

The root of this issue seems to be the SSL configuration, supported by this github issue -- the answer to this issue seems to have solved the problem on their machine, but I'm not sure how to configure SSL in this way for my Render instance. I'm also not sure if it's possible, or if it would solve the problem. Any insight into this issue would be super helpful!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牵你手 2025-02-17 01:47:31

我有同样的问题,问题是openssl.cnf文件。

使用此代码:

pdf.create(html, {
  childProcessOptions: {
    env: {
      OPENSSL_CONF: '/dev/null',
    },
  }
});

I had same problem, The problem is openssl.cnf file.

Use this code:

pdf.create(html, {
  childProcessOptions: {
    env: {
      OPENSSL_CONF: '/dev/null',
    },
  }
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文