hunk.code_window:       });
         term.open(document.getElementById('terminal-container'), true);
         term.resize(width, height);
         term.setOption('cursorBlink', true);
         socket.onmessage = function (e) {
           term.write(e.data);
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:       term.fit();
         window.onresize = function() {
           term.fit();
         };
  
hunk.file_path: app/components/containerConsole/containerConsoleController.js
hunk.type: add
file: package crypto
  
  import (
  	"crypto/tls"
  	"crypto/x509"
  	"io/ioutil"
  )
  
  // CreateTLSConfiguration initializes a tls.Config using a CA certificate, a certificate and a key
  func CreateTLSConfiguration(caCertPath, certPath, keyPath string) (*tls.Config, error) {
  	cert, err := tls.LoadX509KeyPair(certPath, keyPath)
  	if err != nil {
  		return nil, err
  	}
  	caCert, err := ioutil.ReadFile(caCertPath)
  	if err != nil {
  		return nil, err
  	}
  	caCertPool := x509.NewCertPool()
  	caCertPool.AppendCertsFromPEM(caCert)
  	config := &tls.Config{
  		Certificates: []tls.Certificate{cert},
  		RootCAs:      caCertPool,
  	}
  	return config, nil
  }
  