adding actual check if no certificates are used