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

Fix DH param generation #93

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

dappnodedev
Copy link
Contributor

This PR aims to fix the following bug:

Failed to reconfigure NGINX ShellError: Command failed: nginx -s reload
nginx: [emerg] PEM_read_bio_DHparams("/etc/ssl/dappnode/wildcard_certs/dhparam.pem") failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: DH PARAMETERS)

    at shell (/usr/src/app/build/utils/shell.js:56:19)
    at async reconfigureNGINX (/usr/src/app/build/api/utils/nginx.js:15:13)
    at async /usr/src/app/build/api/app.js:35:30 {
  cmd: 'nginx -s reload',
  killed: false,
  code: 1,
  signal: null,
  stdout: '',
  stderr: 'nginx: [emerg] PEM_read_bio_DHparams("/etc/ssl/dappnode/wildcard_certs/dhparam.pem") failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: DH PARAMETERS)\n'
}

It was caused due to /etc/ssl/dappnode/wildcard_certs/dhparam.pem being empty

@dappnodedev dappnodedev requested a review from a team as a code owner July 9, 2024 14:44
Copy link

github-actions bot commented Jul 9, 2024

Dappnode bot has built and pinned the built packages to an IPFS node, for commit: 2798b79

This is a development version and should only be installed for testing purposes.

(by dappnodebot/build-action)

src/certificates/openssl.ts Outdated Show resolved Hide resolved
@pablomendezroyo pablomendezroyo merged commit a1bcd6b into master Jul 10, 2024
4 checks passed
@pablomendezroyo pablomendezroyo deleted the bugfix/dhparams-generation branch July 10, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants