Description of problem: When I try to view MasterCrl.bin file generated via "wget --no-check-certificate -d https://peach.pnq.redhat.com:9444/ca/ee/ca/crl/MasterCRL.bin" , I get exceptions. Version-Release number of selected component (if applicable): pki-java-tools-8.0.0-10.alpha (Build Date - 17 march 2009) Steps-to-reproduce: (1) Go to the directory where you have MasterCrl.bin and issue the below command [csuser1@peach ~]$ PrettyPrintCrl MasterCRL.bin . Exception in thread "main" java.lang.NullPointerException at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106) at netscape.security.util.DerValue.<init>(DerValue.java:236) at netscape.security.x509.X509CRLImpl.<init>(X509CRLImpl.java:132) at com.netscape.cmstools.PrettyPrintCrl.main(PrettyPrintCrl.java:144) Expected results: Should be able to see CRL information. Please let me know if any other information is required.
Created attachment 335748 [details] MasterCRL.bin file for which no revoked certs are shown. Created an attachment of MasterCRL.bin
Not a bug. need to first convert .bin to ASCII using BtoA and later PrettyPrintCrl the ascii file.
Although this is still not a bug, the following attachment outlines some simple fixes to the generated shell scripts for PrettyPrintCert and PrettyPrintCrl.
Created attachment 336933 [details] PrettyPrint scripts
Created attachment 336934 [details] PrettyPrint scripts (specs)
attachment (id=336933) attachment (id=336934) +awnuk
% svn stat M dogtag/java-tools/pki-java-tools.spec A base/java-tools/templates/pretty_print_crl_command_wrapper A base/java-tools/templates/pretty_print_cert_command_wrapper M base/java-tools/build.xml %svn commit Sending base/java-tools/build.xml Adding base/java-tools/templates/pretty_print_cert_command_wrapper Adding base/java-tools/templates/pretty_print_crl_command_wrapper Sending dogtag/java-tools/pki-java-tools.spec Transmitting file data .... Committed revision 339.
Verified(with build 20 may 09). PrettyPrintCrl prints the certificate gracefully.