Amount of installed certificates

Ch_Dietz
New Contributor

Hi,
is it possible to display the amount of installed certificates in advanced searches?
In the computer overview i can see the amount, but i can not search for it.
I try to monitor the amount of installed certificates to avoid to many installations of it. (see screenshot)be44dda3c6ea4e79adb977cdbe3c26a8

Christian

1 REPLY 1

Jerneheim
New Contributor III

Hi Christian,

You could create an ext. attribut and use "certtool y" to count them. Here you also have the option to specify in which keychain to look.

certtool y k=~/Library/Keychains/login.keychain
certtool y k=/Library/Keychains/System.keychain

Use tail, awk or sed to get the second to last line of output, filter the result and set the value as an integer. Now you can create a smart group that notifies you at a specific threshold of your choice.



Patrik