Sslwebaccess
From CoolSolutionsWiki
-My Other wikis
Installing and configuring GroupWise 7 WebAccess on SLES 10/OES2 and ensure SSL is used
Contents |
[edit]
docs
- How to change the SSL Certificate on SLES 9 for GroupWise WebAccess (novell-httpd)
- Installing GroupWise WebAccess on SLES 10
[edit]
Gotchas
- If OES 2 one must use 9009 instead of 8009
- If OES 2 one must use /var/opt/novell/tomcat5/webapps directory DURING INSTALL instead of tomcat4
- For SLES 10/OES2 One must modify the /etc/opt/novell/httpd/conf.d/gw.conf file and add a few items per TID 3248145
[edit]
my process
on OES 2 this is what I found:
- /etc/opt/novell/httpd/conf.d/gw.conf instead of /etc/apache2/conf.d/gw.conf in TID installing GW webacc on sles 10
- SSL TID differences
- Open a new Shell-Konsole
- Type "sux -"
- Enter root's password
- mkdir /etc/opt/novell/httpd/conf.d/ssl.crt
- Type "cd /etc/opt/novell/httpd/conf.d/ssl.crt" without the quotes and press Enter
- Type "openssl genrsa -out privkey.pem" without the quotes and press Enter
- Type "openssl req -new -key privkey.pem -out cert.csr" without the quotes and press Enter
- Fill in the Country Name. State or Province Name, Locality Name, Organization Name, Organizational Unit Name, Common Name, E-mail Address, Challenge Password and an Optional Company Name. (All of the fields can be left blank. Give importance while entering Common Name. For eg. If domain name is www.novell.com, Enter www.novell.com in Common Name)
- Switch to ConsoleOne
- Click Tools | Issue Certificate
- Browse to "/etc/opt/novell/httpd/conf.d/ssl.crt/cert.csr" and click Next
- Select "Organizational certificate authority" and click Next
- Select "SSL or TLS" and click Next
- Click Next or change the Validity period and click Next. The default is 1 year
- Click Finish
- Select "File in Base64 format" and provide the path "/etc/opt/novell/httpd/conf.d/ssl.crt/Cert.b64"
- Click Save
- Switch back to a Shell-Konsole
- Type "cd /etc/opt/novell/httpd/gconf.d" without quotes and press Enter
- Type "vi sslvhost.conf" without the quotes and press Enter
- Comment out "SSLCertificateFile /etc/opt/novell/httpd/conf.d/ssl.crt/server.pem" line by inserting a # symbol at the beginning of the line
- Below the above line type "SSLCertificateKeyFile /etc/opt/novell/httpd/conf.d/ssl.crt/privkey.pem" without the quotes (This path should point to the Key file which may have any other extension than pem)
- Below the above line type "SSLCertificateFile /etc/opt/novell/httpd/conf.d/ssl.crt/Cert.b64" without the quotes (This path should point to the Certificate file which may have any other extension than b64)
- Save the file
- Type "cd /etc/rc.d/" without quotes and press Enter
- Type "vi novell-httpd" without quotes and press Enter
- Search for the line that begins with KEYFILE and change it to
- KEYFILE=/etc/opt/novell/httpd/conf.d/ssl.crt/privkey.pem (This path should point to the Key file which may have any other extension than pem)
- Save the file
- Restart the WebServer by typing "/etc/rc.d/novell-httpd restart" without the quotes
- Access GroupWise WebAccess using SSL and view Certificate. If the "Issued to: " field contains the Common Name entered in step 7, then the Certificate is working fine.
- Use consoleone to modify the webacc7 object and configure the SSL certs there. I pointed to my /etc/opt/novell/httpd/conf.d/ssl.crtCert.b64 and privkey.pem
[edit]
Testing
https://oes2/gw/webacc
or
http://oes2/gw/webacc
[edit]
configuring auto redirection from http to https
- cd /var/opt/novell/gw
- cp index.html index.html.bak
- gedit index.html or vi index.html
- snip everything from <style media="screen" type="text/css"> TO </style> so it looks like this
- <title>Novell Web Services</title>
- <script>location="https://oes2/gw/webacc"</script>
- </head>
- This will auto re-direct users that go to http to https. NOTE: Put your DNS name or IP address instead of oes2
- Use yast to change the webserver's default webpage
[edit]
Troubleshooting
- rcgrpwise status
- rcapache2 status
- rctomcat5 status
- netstat -anp >> out.txt search this out.txt for the port, possible port conflict
- lsof -i
