diff options
Diffstat (limited to 'version/official_windows.go')
-rw-r--r-- | version/official_windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/version/official_windows.go b/version/official_windows.go index b0f62250..d9f041f6 100644 --- a/version/official_windows.go +++ b/version/official_windows.go @@ -67,12 +67,12 @@ func IsRunningOfficialVersion() bool { // This below tests is easily circumvented. False certificates can be appended, and just checking the // common name is not very good. But that's okay, as this isn't security related. - certs, err := wintrust.ExtractCertificates(path) + names, err := wintrust.ExtractCertificateNames(path) if err != nil { return false } - for _, cert := range certs { - if cert.Subject.CommonName == officialCommonName { + for _, name := range names { + if name == officialCommonName { return true } } |