(certFile, keyFile string)
| 137 | } |
| 138 | |
| 139 | func (k *Kite) UseTLSFile(certFile, keyFile string) { |
| 140 | certData, err := ioutil.ReadFile(certFile) |
| 141 | if err != nil { |
| 142 | k.Log.Fatal("Cannot read certificate file: %s", err.Error()) |
| 143 | } |
| 144 | |
| 145 | keyData, err := ioutil.ReadFile(keyFile) |
| 146 | if err != nil { |
| 147 | k.Log.Fatal("Cannot read certificate file: %s", err.Error()) |
| 148 | } |
| 149 | |
| 150 | k.UseTLS(string(certData), string(keyData)) |
| 151 | } |
| 152 | |
| 153 | func (k *Kite) ServerCloseNotify() chan bool { |
| 154 | return k.closeC |