Skip to content

segmentation fault if ssl enabled but ssl_certificate_file and ssl_certificate_key_file not specified #8061

Closed
@jsthind

Description

@jsthind

HHVM Version

3.21.3 on Debian 8 64bit

Standalone code, or other way to reproduce the problem

Trying to enable LetsEncrypt SSL in hhvm. I tried out the following three options:

Test 1
SSL generated automatically from SSH via certbot

hhvm.server.enable_ssl = true
hhvm.server.ssl_port = 443
hhvm.server.ssl_certificate_file = /home/user1/hhvm/example1.com/cert.pem
hhvm.server.ssl.certificate_key_file = /home/user1/hhvm/example1.com/privkey.pem
hhvm.server.ssl_certificate_dir = /home/user1/hhvm/example1.com

Test 2
SSL generated automatically from SSH via certbot

hhvm.server.enable_ssl = true
hhvm.server.ssl_port = 443
hhvm.server.ssl_certificate_file = /home/user1/hhvm/example1.com/fullchain.pem
hhvm.server.ssl.certificate_key_file = /home/user1/hhvm/example1.com/privkey.pem
hhvm.server.ssl_certificate_dir = /home/user1/hhvm/example1.com

Test 3
SSL generated and downloaded manually from https://www.sslforfree.com

hhvm.server.enable_ssl = true
hhvm.server.ssl_port = 443
hhvm.server.ssl_certificate_file = /home/user1/hhvm/example1.com/certificate.crt
hhvm.server.ssl.certificate_key_file = /home/user1/hhvm/example1.com/private.key
hhvm.server.ssl_certificate_dir = /home/user1/hhvm/example1.com

Expected result

HHVM up and running with SSL enabled

Actual result

Invalid certificate file or key file
Core dumped: Segmentation fault
Stack trace in /tmp/stacktrace.13127.log

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions