docs: @RequestMapping(value = "/cert/{hostname:.+}", method = {RequestMethod.GET, RequestMethod.HEAD})
      public
      @ResponseBody
      void getCert(Locale locale, Model model, HttpServletResponse response, @PathVariable String hostname) throws Exception {
          // Set the appropriate headers so the browser thinks this is a file
          response.reset();
          response.setContentType("application/x-x509-ca-cert");
          response.setHeader("Content-Disposition", "attachment;filename=" + hostname + ".cer");
  
          // special handling for hostname=="root"
          // return the CyberVillians Root Cert in this case
          if (hostname.equals("root")) {
              hostname = "cybervillainsCA";
              response.setContentType("application/pkix-cert ");
          }
  
          // get the cert for the hostname
          KeyStoreManager keyStoreManager = com.groupon.odo.bmp.Utils.getKeyStoreManager(hostname);
  
          if (hostname.equals("cybervillainsCA")) {
              // get the cybervillians cert from resources
              File root = new File("seleniumSslSupport" + File.separator + hostname);
  
              // return the root cert
              Files.copy(new File(root.getAbsolutePath() + File.separator + hostname + ".cer").toPath(), response.getOutputStream());
              response.flushBuffer();
          } else {
              // return the cert for the appropriate alias
              response.getOutputStream().write(keyStoreManager.getCertificateByAlias(hostname).getEncoded());
              response.flushBuffer();
          }
  
  
      }