I'm about at the end of my knowledge and am sure I'm missing something
right in front of my face while trying to set up a new report format.

I have set up keys on our Openvas server (as per
http://www.openvas.org/trusted-nvts.html) created a new report format,
grabbed the create_report_import from SVN and modified as seen below, ran
it and uploaded the results as a new report, activated it with omp and
everything seems fine, except openvas refuses to trust the report...

I'm thinking its somewhere in the signing process that I am going wrong,
because gpg will verify (gpg --homedir=/etc/openvas/gnupg
--verify ${UUID}.asc ${UUID}) as created...but that signing procedure seems
off to me, I'm just not sure how.

---
NAME="PDF Detailed Report"
UUID=`uuid`
EXTENSION=pdf
CONTENT_TYPE="application/pdf"
SUMMARY="Customized PDF report to replace default"
DESCRIPTION="Customized scan PDF report."
# Names must be in alphabetical order.
FNAME1=generate
FILE1=`base64 -w 0 generate`
FNAME2=latex.xsl
FILE2=`base64 -w 0 latex.xsl`

echo
${UUID}${NAME}${EXTENSION}${CONTENT_TYPE}${SUMMARY}${DESCRIPTION}0${FNAME1}${FILE1}${FNAME2}${FILE2}
> ${UUID}
gpg --homedir=/etc/openvas/gnupg --detach-sign --armor ${UUID}
rm ${UUID}

echo -n '<get_report_formats_response status="200"
status_text="OK"><report_format
id="'$UUID'"><name>'$NAME'</name><extension>'$EXTENSION'</extension><content_type>'$CONTENT_TYPE'</content_type><summary>'$SUMMARY'</summary><description>'$DESCRIPTION'</description><file
name="'$FNAME1'">'$FILE1'</file><file
name="'$FNAME2'">'$FILE2'</file><signature>' > custom_detail_pdf.xml

cat ${UUID}.asc >> custom_detail_pdf.xml

echo '</signature></report_format></get_report_formats_response>' >>
custom_detail_pdf.xml
---

I'm grateful for any and all input that might help. Thanks,
Greg

-- 
Greg Etling
getl...@stern.nyu.edu
<getl...@stern.nyu.edu>Systems Administrator
Stern IT Enterprise Operations
NYU Stern School of Business
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to