001 package railo.runtime.functions.other; 002 003 import railo.runtime.PageContext; 004 import railo.runtime.exp.PageException; 005 import railo.runtime.ext.function.Function; 006 import railo.runtime.tag.Admin; 007 import railo.runtime.tag.util.DeprecatedUtil; 008 009 public final class SSLCertificateInstall implements Function { 010 011 private static final long serialVersionUID = -831759073098524176L; 012 013 public static String call(PageContext pc, String host) throws PageException { 014 return call(pc, host, 443); 015 } 016 017 public static String call(PageContext pc, String host, double port) throws PageException { 018 DeprecatedUtil.function(pc, "SSLCertificateInstall"); 019 Admin.updateSSLCertificate(pc.getConfig(), host, (int)port); 020 return ""; 021 } 022 023 }