Skip to content

How to configure Hawkbit to run on https? #598

Closed

Description

@KrupaRajashekar

Hi,

I have hawkbit update server running on http & port 8080. How can I configure it to use https protocol ?

Thanks.

Activity

  1. michahirsch commented on Oct 26, 2017

    @michahirsch
    Contributor
  2. KrupaRajashekar commented on Oct 26, 2017

    @KrupaRajashekar
    Author

    Thanks for the quick help ! It worked .

  3. michahirsch commented on Oct 26, 2017

    @michahirsch
    Contributor

    👍

  4. laverman commented on May 28, 2018

    @laverman
    Contributor

    Hi @mmseraj,
    it seems, they removed the current path, which has to be replaced by a certain version. Hawkbit uses spring-boot 1.4.7.RELEASE. Hence, the link is:
    https://docs.spring.io/spring-boot/docs/1.4.7.RELEASE/reference/html/howto-embedded-servlet-containers.html#howto-configure-ssl

  5. mmseraj commented on May 29, 2018

    @mmseraj

    Hi @laverman,
    Thanks a lot for the link!

    Maryam

  6. huynguyennovem commented on May 6, 2019

    @huynguyennovem

    Hi, after try this solution, I can access to https, but still got the warning:"Connection Is Not Secure".
    How to resolve this?

  7. schabdo commented on May 7, 2019

    @schabdo
    Contributor

    @huynq0911 what kind of certificate do you put in the keystore? If it is a self-signed certificate your browser won't trust it, thus you'll get "Connection Is Not Secure" even if you use HTTPS.

  8. huynguyennovem commented on May 8, 2019

    @huynguyennovem

    @huynq0911 what kind of certificate do you put in the keystore? If it is a self-signed certificate your browser won't trust it, thus you'll get "Connection Is Not Secure" even if you use HTTPS.

    @schabdo Oh, I got it! Does it mean that I need CA from some provider to secure connection?
    I have one more question. Does the Hawkbit run on an embedded-servlet-containers? If that is, how can I config SSL protocols like Nginx: /etc/nginx/nginx.conf

    http {
        ssl_ciphers         EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_session_cache   shared:SSL:10m;
        ssl_session_timeout 10m;
    }
    
  9. a-sayyed commented on May 8, 2019

    @a-sayyed
    Contributor

    @huynq0911 what kind of certificate do you put in the keystore? If it is a self-signed certificate your browser won't trust it, thus you'll get "Connection Is Not Secure" even if you use HTTPS.

    @schabdo Oh, I got it! Does it mean that I need CA from some provider to secure connection?
    I have one more question. Does the Hawkbit run on an embedded-servlet-containers? If that is, how can I config SSL protocols like Nginx: /etc/nginx/nginx.conf

    http {
        ssl_ciphers         EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_session_cache   shared:SSL:10m;
        ssl_session_timeout 10m;
    }
    

    @huynq0911 you can check out https://letsencrypt.org/ for the CA

  10. schabdo commented on May 8, 2019

    @schabdo
    Contributor

    Does it mean that I need CA from some provider to secure connection?

    Exactly. Otherwise you have to add your self-signed certificate as trusted source to all your peers. Usually this is not really an option so better go for an already trusted CA e.g. letsencrypt.org.
    In case you only need it for local development you may have a look at mkcert. Haven't tried it myself but it's on my list 😄

    Regarding the TLS configuration: hawkBit is shipped with Jetty by default. So you should be able to use standard Spring Boot properties for TLS setup. This should do the trick:

    server.ssl.protocol=TLS
    server.ssl.enabled-protocols=TLSv1,TLSv1.1,TLSv1.2
    server.ssl.ciphers=EECDH+AESGCM,EDH+AESGCM,AES256+EECDH,AES256+EDH
    

    Haven't tested it myself. Let me know whether or not this is working out for you

  11. huynguyennovem commented on May 10, 2019

    @huynguyennovem

    @schabdo : I'm trying to build a trusted CA (it's difficult for me).
    I'm also trying to config TLS as your suggestion, but it seems does not work.
    Error https://i.imgur.com/QDyEDyx.png

  12. schabdo commented on May 10, 2019

    @schabdo
    Contributor

    @huynq0911 may I ask you to open a new issue for it? For further investigation please provide detailed SSL handshake output from client side and the steps how you built the certificates.

  13. huynguyennovem commented on May 13, 2019

    @huynguyennovem

    @huynq0911 may I ask you to open a new issue for it? For further investigation please provide detailed SSL handshake output from client side and the steps how you built the certificates.

    I have created new issue here. Please help me to review it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions