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