# certutil -L -d /home/$username/.mozilla/firefox/*.default/ Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI CN=$certname,OU=site,O=org,L=city,ST=state,C=US u,u,u CN=Certificate Authority,OU=site,O=org CT,C,C #### my $command = "certutil -L -d $config{firefox_profile}"; open(OUTPUT , "-|", "$command"); while (my $current = ){ chomp $current; if ($current =~ /^($certname)/i) { #Do something } } #### $cert_hash{CN=$certname,OU=site,O=org,L=city,ST=state,C=US}{trust} = “u,u,u”; $cert_hash{CN=Certificate Authority,OU=site,O=org}{trust} = “CT,C,C”;