Revert "Add method to check if certificate is self-signed"
This reverts commit 0622cb4fb74aa5b9b35fda4829d27dad7704896b.