> Hi, can someone help me signing a nasl script?
> I know I have to use the "nasl -S" command, but I
> don't understand what's the right syntax and what's
> the key to use (the serverkey.pem one or what).
>
Self explanatory answers below...
a.) -S
=============
switch(i)
{
case 'S' :
if ( optarg == NULL ) {
usage();
exit(1);
}
nessus_SSL_init(NULL);
generate_signed_script(optarg);
exit(0);
break;
b.) generate_signed_script
===========================
/*
* Signs a given script
*/
int generate_signed_script(char * filename)
{
RSA * rsa = NULL;
FILE * fp = fopen(NESSUS_STATE_DIR "/nessus/nessus_org.priv.pem", "r");
unsigned char * result;
<..snip..>
The private key, "/nessus/nessus_org.priv.pem" is required which we dont
have ;-).. And thats why we get the error ...
open: No such file or directory
HTH,
-=skillz=-
_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers
This archive was generated by hypermail 2.1.3 : Thu Mar 17 2005 - 08:28:41 PST