Roxen.git
/
server
/
config_actions
/
make_csr.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/config_actions/make_csr.pike:1:
/*
-
* $Id: make_csr.pike,v 1.
2
1997/12/
16
18
:
37
:
06
grubba Exp $
+
* $Id: make_csr.pike,v 1.
3
1997/12/
17
01
:
00
:
25
grubba Exp $
*/ inherit "wizard"; import Standards.PKCS; import Standards.ASN1.Encode; #if 0 #define WERROR werror #else #define WERROR(x) #endif constant name = "Security//Generate a Certificate Signing Request for an RSA key..."; constant doc = ("To use an RSA key with your server, you must have a certificate " "for it. You request a certificate by sending a Certificate " "Signing Request to a Certificate Authority, for example Thawte " "or VeriSign.");
-
+
#if !constant(Crypto.rsa)
+
+
constant action_disabled = 1;
+
+
#else /* constant(Crypto.rsa) */
+
mixed page_0(object id, object mc) { string msg; if (id->variables->_error) { msg = "<font color=red>" + id->variables->_error + "</font><p>"; id->variables->_error = 0; }
Roxen.git/server/config_actions/make_csr.pike:226:
return "<pre>" + SSL.pem.build_pem("CERTIFICATE REQUEST", csr->der()) +"</pre>"; } mixed wizard_done(object id, object mc) { return 0; } mixed handle(object id) { return wizard_for(id,0); }
+
+
#endif /* constant(Crypto.rsa) */