Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Paperguides on April 05, 2011, 05:17:34 PM

Title: loss of access after installation of CA certificate [Solved]
Post by: Paperguides on April 05, 2011, 05:17:34 PM
This was probably a daft thing to do but I followed the How To "Certificates signed by own CA" and I can now no longer access via the web interface.  Emails and other actions appear to be working OK.  I can, however, still access using Putty.

This is a 8.0b6 with all updates applied.

Short of reloading from scratch, how can I recover the web access?

Thanks,
Title: Re: loss of access after installation of CA certificate
Post by: jester on April 05, 2011, 06:54:39 PM
No guarantees! Try:

Code: [Select]
db configuration delprop modSSL crt
db configuration delprop modSSL key
signal-event console save

Rename the keys you've created (replace ??? with real names):
Code: [Select]
mv /home/e-smith/ssl.crt/???.crt /home/e-smith/ssl.crt/???.crt.OLD
mv /home/e-smith/ssl.key/???.key /home/e-smith/ssl.key/???.key.OLD
mv /home/e-smith/ssl.pem/???.pem /home/e-smith/ssl.pem/???.pem.OLD

And to finish things:
Code: [Select]
signal-event ldap-update
I think this should bring you back to the original situation.

Part of the info of the certificate is set through the server-manager: server-manager > configuration > directory
The commonName of the certificate can be set as described here: http://wiki.contribs.org/Certificate#Custom_Certificate_for_SME_7.1.3_and_above_versions (http://wiki.contribs.org/Certificate#Custom_Certificate_for_SME_7.1.3_and_above_versions)


HTH.
Title: Re: loss of access after installation of CA certificate
Post by: Paperguides on April 05, 2011, 11:24:02 PM
Thanks Jester, It worked brilliantly.  :-P

One minor typo:

signal-event console save  should be signal-event console-save

Thanks again for you help.