Roxen.git / server / config_actions / make_csr.pike

version» Context lines:

Roxen.git/server/config_actions/make_csr.pike:1:   /* -  * $Id: make_csr.pike,v 1.9 1999/01/31 23:26:59 peter Exp $ +  * $Id: make_csr.pike,v 1.10 1999/04/24 17:55:37 mast Exp $    */      inherit "wizard";      import Standards.PKCS;   #if constant(Standards.ASN1.Types) //0.6 feature   import Standards.ASN1.Types;   #else   import Standards.ASN1.Encode;   #endif /* constant(Standards.ASN1.Types) */
Roxen.git/server/config_actions/make_csr.pike:38:    if (id->variables->_error)    {    msg = "<font color=red>" + id->variables->_error    + "</font><p>";    id->variables->_error = 0;    }       return (msg || "" )    + ("<font size=+1>Which key do you want to certify?</font><p>"    "<var name=key_file type=string><br>\n" -  "Where the private key is stored.<br> " +  "Where the private key is stored, relative to " + getcwd() + ".<br> "    "<help><blockquote>"    "A filename in the real filesystem, where the private key is stored. "    "(The private key is needed to sign the CSR. It is <em>not</em> "    "included in the file sent to the Certificate Authority)."    "</blockquote></help>");   }      mixed verify_0(object id, object mc)   {    if (!file_stat(id->variables->key_file))
Roxen.git/server/config_actions/make_csr.pike:248:    cert_attrs) });       object csr = CSR.build_csr(rsa,    Certificate.build_distinguished_name(@name),    csr_attrs);      #if 0    werror("csr: %s\n", Crypto.string_to_hex(csr->get_der()));   #endif    +  string res = "The certificate request:<br>\n"; +    #if constant(Tools) -  return "<textarea cols=80 rows=12>" +  return res + "<textarea cols=80 rows=12>"    + Tools.PEM.simple_build_pem("CERTIFICATE REQUEST", csr->get_der())    +"</textarea>";   #else /* !constant(Tools) */    /* Backward compatibility */ -  return "<textarea cols=80 rows=12>" +  return res + "<textarea cols=80 rows=12>"    + SSL.pem.build_pem("CERTIFICATE REQUEST", csr->get_der())    +"</textarea>";   #endif /* constant(Tools) */   }      mixed wizard_done(object id, object mc)   {    return 0;   }      mixed handle(object id) { return wizard_for(id,0); }      #endif /* constant(_Crypto) && constant(Crypto.rsa) */