~jose/charms/precise/postfix/add-ssl-action

« back to all changes in this revision

Viewing changes to README.md

  • Committer: José Antonio Rey
  • Date: 2015-06-09 05:13:36 UTC
  • Revision ID: jose@ubuntu.com-20150609051336-unmcm5tvnbwoeke6
Moved add-ssl hook to actions and fixed accordingly, removed revision file

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
`rootuser`: The root username (it is usually root or ubuntu)
43
43
 
 
44
# Actions
 
45
 
 
46
This charm only supports the add-ssl action. It requires the following
 
47
configuration parameters:
 
48
 
44
49
`ssl-key`: The SSL key on your system, which should be stated as `cat
45
50
~/smtpd.key`
46
51
 
83
88
Once you have generated the certificates, you can go ahead and execute the
84
89
following command:
85
90
 
86
 
    juju set postfix ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`"
87
 
  cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"
 
91
    juju action do postfix/# add-ssl ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`" cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"
88
92
 
89
93
## Renewing the keys and certificates
90
94
 
92
96
added SSL support. Just re-run the following command, specifying the new
93
97
certificates and keys locations instead of the old ones:
94
98
 
95
 
    juju set postfix ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`"
96
 
  cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"
 
99
    juju action do postfix/# add-ssl ssl-key="`cat ~/smtpd.key`" ssl-cert="`cat ~/smtpd.crt`" cacert="`cat ~/cacert.pem`" cakey="`~/cakey.pem`"
97
100
 
98
101
Once you do that, your keys and SSL certificates should be updated.
99
102