-
URL-, (, , URL Chrome dev), master , , https, , redirect_uri http.
, Keycloak ( )
1)
, MySql. .
2)
update REALM set ssl_required = 'NONE' where id = 'master';
:
, 4.0 Keycloak https URI , https. Keycloak , . - - , SSL/TLS, Java.
2: Keycloak . , ( ) [https://www.keycloak.org/downloads.html]. Keycloak Gatekeeper, - Apache.
3) Apache. Apache ( NGINX, NGINX , ). yum Apache (CentOs 7) apt-get install Apache (Ubuntu 16) .
4) Apache
sudo systemctl start httpd (CentOs) sudo systemctl start apache2 (Ubuntu)
sudo systemctl status httpd (CentOs) sudo systemctl status apache2
(Ubuntu), , Apache. active (running) Started The Apache HTTP Server., .
5) SSL- , keyCloak http. HTTP- , . Certbot .
, , , SSL WildFly -.
:
https . , - Keycloak 4.0, . , SSL , , , , , №2 https. http SSH- .
6)
, https, HSTS, http https. , HSTS Chrome, https- .
7)
Apache.
, httpd.conf. httpd.conf, , . conf.d, , httpd.conf.
conf , conf . , SSL, certbot. , .
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{request_uri}\?%{query_string} ^(.*)redirect_uri=https(.*)$
RewriteRule . %1redirect_uri=http%2 [NE,R=302]
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
RewriteEngine on
Header set Strict-Transport-Security "max-age=0; includeSubDomains;" env=HTTPS
RewriteCond %{request_uri}\?%{query_string} ^(.*)redirect_uri=https(.*)$
RewriteRule . %1redirect_uri=http%2 [NE,R=302]
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
</IfModule>
8) Apache. sudo systemctl restart httpd (CentOs) sudo systemctl restart apache2 (Ubuntu).
9)
, Keycloak http, . VPN keycloak, SOCKS. SOCKS . .
ssh -N -D 9905 user@example.com
Putty.
, 9905, SSH . , 9905 .
- SOCKS 9905. .
10) Keycloak. -, http://127.0.0.1, - SOCKS . , , - SOCKS, , , .
11) , , .