Problems to enable SSL on PWM

2,396 views
Skip to first unread message

Alberto Viana

unread,
Dec 6, 2012, 8:03:57 AM12/6/12
to pwm-g...@googlegroups.com
I setup a pwm + apache (reverse proxy) and everything was working fine until I enabled the "Require HTTPS" option. It keeps me showing the following error:

PWM 5044



I Already enabled the SSL connection on apache side. 

apache2(reverse proxy) + SSL ---REDIRECT---> my_local_pwm:8080 (works fine)

apache2(reverse proxy) + SSL ---REDIRECT---> my_local_pwm:8080 with SSL (shows me the error)

Here´s my apache2 config:

ProxyRequests Off



<Proxy *>
        Order deny,allow
        Allow from all
</Proxy>
ProxyPassReverse /pwm http://localhost:8080/pwm
SSLEngine On
SSLProxyEngine on
SSLCertificateFile /etc/apache2/ssl/cert.crt
SSLCertificateKeyFile /etc/apache2/ssl/cert.key

After enable SSL on pwm side I tried also the following config:

ProxyPassReverse /pwm https://localhost:8080/pwm

But still not working. Should I config anything on tomcat side? 

What exactly should I do to get this working? 

Thanks!

Alberto Viana

Menno Pieters

unread,
Dec 6, 2012, 9:31:01 AM12/6/12
to pwm-g...@googlegroups.com
On Thu, Dec 6, 2012 at 2:03 PM, Alberto Viana <alber...@gmail.com> wrote:
I setup a pwm + apache (reverse proxy) and everything was working fine until I enabled the "Require HTTPS" option. It keeps me showing the following error:

This option requires the connection to Tomcat to be made using HTTPS. Probably better and easier is to force the user from HTTP to HTTPS in Apache: redirect all incoming traffic on port 80 to 443, by making a virtual host on port 80 to do just that. Another option may be to try and use ajp instead of http to forward the request to Tomcat. Have a look at tomcat documentation on how to setup the AJP listening port.

Regards,

Menno
 

PWM 5044



I Already enabled the SSL connection on apache side. 

apache2(reverse proxy) + SSL ---REDIRECT---> my_local_pwm:8080 (works fine)

apache2(reverse proxy) + SSL ---REDIRECT---> my_local_pwm:8080 with SSL (shows me the error)

Here´s my apache2 config:

ProxyRequests Off



<Proxy *>
        Order deny,allow
        Allow from all
</Proxy>
ProxyPassReverse /pwm http://localhost:8080/pwm
SSLEngine On
SSLProxyEngine on
SSLCertificateFile /etc/apache2/ssl/cert.crt
SSLCertificateKeyFile /etc/apache2/ssl/cert.key

After enable SSL on pwm side I tried also the following config:

ProxyPassReverse /pwm https://localhost:8080/pwm

But still not working. Should I config anything on tomcat side? 

What exactly should I do to get this working? 

Thanks!

Alberto Viana

--
You received this message because you are subscribed to the Google Groups "pwm-general" group.
To post to this group, send email to pwm-g...@googlegroups.com.
To unsubscribe from this group, send email to pwm-general...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/pwm-general/-/cncIrcV18i4J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alberto Viana

unread,
Dec 7, 2012, 11:05:39 AM12/7/12
to pwm-g...@googlegroups.com
Thanks so much, I got it and now everything is working as expected.

I Just have 1 more doubt, as I see that after "lock configuration file" I loose acess to the "PWM Configuration Editor"

Is that rigth? Can I unlock it again? Is there any another way to edit the config via browser?

Regards,
Alberto Viana

Joshua Ellsworth

unread,
Dec 7, 2012, 11:14:04 AM12/7/12
to pwm-g...@googlegroups.com
You have to go into the config file and set "configIsEditable" to "true" in order to use the configuration editor again. Leaving the config unlocked is not a good idea in a production environment.

--
You received this message because you are subscribed to the Google Groups "pwm-general" group.
To post to this group, send email to pwm-g...@googlegroups.com.
To unsubscribe from this group, send email to pwm-general...@googlegroups.com.

Alberto Viana

unread,
Dec 7, 2012, 11:29:23 AM12/7/12
to pwm-g...@googlegroups.com
Thanks!

barr...@gmail.com

unread,
Mar 20, 2014, 12:30:19 AM3/20/14
to pwm-g...@googlegroups.com
Hi Albert:

Any procedure and guideline u have to make pwm work with https , the simpliest steps.???

I tried your config in httpd.conf but not able to work.

Regards

Reply all
Reply to author
Forward
0 new messages