bugfix-4967
The enum of types for certificates has been changed. Public is used when there is only a public key. PublicAndPrivate is used when there is a public and private key. Error is used in all other cases. Both is used only for filtering in the GUI.