You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
@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
@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
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:
@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.
@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 :)
Activity
michahirsch commentedon Oct 26, 2017
Hi @KrupaRajashekar
you should be able to setup HTTPS as described in the spring-boot documentation
https://docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-servlet-containers.html#howto-configure-ssl
Hope this helps,
Cheers,
Michael
KrupaRajashekar commentedon Oct 26, 2017
Thanks for the quick help ! It worked .
michahirsch commentedon Oct 26, 2017
👍
mmseraj commentedon May 25, 2018
Hi,
Has the below document moved since Oct 26, 2017?
https://docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-servlet-containers.html#howto-configure-ssl
Thanks,
Maryam
laverman commentedon May 28, 2018
Hi @mmseraj,
it seems, they removed the
currentpath, which has to be replaced by a certain version. Hawkbit uses spring-boot1.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
mmseraj commentedon May 29, 2018
Hi @laverman,
Thanks a lot for the link!
Maryam
huynguyennovem commentedon May 6, 2019
Hi, after try this solution, I can access to https, but still got the warning:"Connection Is Not Secure".
How to resolve this?
schabdo commentedon May 7, 2019
@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.huynguyennovem commentedon May 8, 2019
@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
a-sayyed commentedon May 8, 2019
@huynq0911 you can check out https://letsencrypt.org/ for the CA
schabdo commentedon May 8, 2019
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:
Haven't tested it myself. Let me know whether or not this is working out for you
huynguyennovem commentedon May 10, 2019
@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
schabdo commentedon May 10, 2019
@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.
huynguyennovem commentedon May 13, 2019
I have created new issue here. Please help me to review it :)