Changes

Jump to navigation Jump to search
224 bytes removed ,  06:54, 19 September 2015
m
added mkdir command
Line 1: Line 1:  
{{Languages}}
 
{{Languages}}
 
=Custom Certificate for SME 7.1.3 and above versions=
 
=Custom Certificate for SME 7.1.3 and above versions=
 +
{{Tip box| The Certificate concept on SME Server is a large topic that you can learn in this dedicated [[Certificates_Concepts|wiki page]]}}
 +
 +
===How to change your certificate===
    
Since SME version 7.1.3, the functionality to configure a Common Name in the certificate is included in the main SME packages and can be configured as follows:
 
Since SME version 7.1.3, the functionality to configure a Common Name in the certificate is included in the main SME packages and can be configured as follows:
    
  config setprop modSSL CommonName www.domain.com
 
  config setprop modSSL CommonName www.domain.com
 +
expand-template /home/e-smith/ssl.key/key
 
  expand-template /home/e-smith/ssl.crt/crt
 
  expand-template /home/e-smith/ssl.crt/crt
expand-template /home/e-smith/ssl.key/key
   
  signal-event domain-modify
 
  signal-event domain-modify
 
  signal-event email-update  
 
  signal-event email-update  
Line 17: Line 20:  
To specify how long your SME certificate will last for, do the following:  
 
To specify how long your SME certificate will last for, do the following:  
    +
mkdir -p /etc/e-smith/templates-custom/home/e-smith/
 
  cp /etc/e-smith/templates/home/e-smith/ssl.crt /etc/e-smith/templates-custom/home/e-smith/ssl.crt
 
  cp /etc/e-smith/templates/home/e-smith/ssl.crt /etc/e-smith/templates-custom/home/e-smith/ssl.crt
  pico -w /etc/e-smith/templates-custom/home/e-smith/ssl.crt
+
  nano -w /etc/e-smith/templates-custom/home/e-smith/ssl.crt
    
change the value for KEYLIFEINDAYS on the first line to the number of days the certificate will remain valid for eg 1826 for 5 years.
 
change the value for KEYLIFEINDAYS on the first line to the number of days the certificate will remain valid for eg 1826 for 5 years.
Line 36: Line 40:     
Also see http://wiki.contribs.org/Certificates_Concepts
 
Also see http://wiki.contribs.org/Certificates_Concepts
      
=Custom Certificate for SME 7.0 to less than 7.1.3=
 
=Custom Certificate for SME 7.0 to less than 7.1.3=
Line 105: Line 108:  
For additional information see [http://forums.contribs.org/index.php?topic=33109.0 this thread].
 
For additional information see [http://forums.contribs.org/index.php?topic=33109.0 this thread].
   −
=Custom Certificate for SME 7.1.3 and above=
  −
  −
you only need to do this as the functionality has been added into the main SME packages:
  −
  −
config setprop modSSL CommonName www.domain.com
  −
expand-template /home/e-smith/ssl.crt/crt
  −
expand-template /home/e-smith/ssl.key/key
  −
signal-event domain-modify
  −
signal-event email-update
  −
  −
see [http://forums.contribs.org/index.php?topic=33109.15] and [http://bugs.contribs.org/show_bug.cgi?id=1689]
     −
''Unnilennium''
   
----
 
----
[[Category: Contrib]]
+
[[Category: Howto]]
 
[[Category:Administration:Certificates]]
 
[[Category:Administration:Certificates]]
624

edits

Navigation menu