code: public void installCertificates(final String key, final String cert, final String chain)
  	{
  		try
  		{
  			final File keyFile = File.createTempFile("key", ".pem");
  			final File certFile = File.createTempFile("cert", ".pem");
  			final File chainFile = File.createTempFile("chain", ".pem");
  
  			try
  			{
  				FileHelper.write(keyFile, key);
  				FileHelper.write(certFile, cert);
  				FileHelper.write(chainFile, chain);
  
  				final Execed process = Exec.rootUtility(new File(binPath, "cert-update").getAbsolutePath(),
  				                                        keyFile.getAbsolutePath(),
  				                                        certFile.getAbsolutePath(),
  				                                        chainFile.getAbsolutePath());
  
  				process.waitForExit(new Timeout(30, TimeUnit.SECONDS).start(), 0);
  			}
  			finally
  			{
  				FileUtils.deleteQuietly(keyFile);
  				FileUtils.deleteQuietly(certFile);
  				FileUtils.deleteQuietly(chainFile);
  			}
  		}
  		catch (IOException e)
  		{
  			throw new RuntimeException("Error executing cert-update command", e);
  		}
  	}
docs: Install new SSL Certificates for the host
  
  @param key
  @param cert
  @param chain