Skip to content

Register template from URL does not work with HTTPS and SNI #4587

Description

@olivierlemasle
ISSUE TYPE
  • Bug Report
COMPONENT NAME
SSVM
CLOUDSTACK VERSION
4.15.0
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

The http(s) client used by the SSVM to download templates does not support SNI (Server Name Indication).

Templates available on webservers using https and SNI (e.g. behind Cloudfront) cannot be downloaded.

STEPS TO REPRODUCE

Register template from URL, with e.g.:

EXPECTED RESULTS

Template is expected to be downloaded in the zone.

ACTUAL RESULTS

Template download fails in the zone, with message:

Received fatal alert: handshake_failure
Temporary fix
  1. Log in the SSVM using SSH
  2. Edit /usr/local/cloud/systemvm/_run.sh to replace -Djsse.enableSNIExtension=false by -Djsse.enableSNIExtension=true
  3. Restart the SSVM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions