tis-yubikey-manager icon

YubiKey Manager

Silent install package for YubiKey Manager

5.8.0-1
Security
Security

  • package: tis-yubikey-manager
  • name: YubiKey Manager
  • version: 5.8.0-1
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • editor: 2017 Yubico
  • licence: proprietary_restricted,wapt_private
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 20.32 Mo
  • homepage : https://github.com/Yubico/yubikey-manager-qt

package           : tis-yubikey-manager
version           : 5.8.0-1
architecture      : x64
section           : base
priority          : optional
name              : YubiKey Manager
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Cross-platform application for configuring any YubiKey on any USB transport
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Application multiplateforme permettant de configurer n'importe quelle YubiKey sur tous les transports USB
description_pl    : Wieloplatformowa aplikacja do konfigurowania dowolnego przycisku YubiKey na dowolnym nośniku USB
description_de    : Plattformübergreifende Anwendung, mit der Sie jeden YubiKey auf jedem USB-Transport einrichten können
description_es    : Aplicación multiplataforma para configurar cualquier YubiKey en cualquier transporte USB
description_pt    : Aplicação multiplataforma para a configuração de qualquer YubiKey em qualquer transporte USB
description_it    : Applicazione multipiattaforma per la configurazione di qualsiasi YubiKey su qualsiasi supporto USB
description_nl    : Cross-platform toepassing voor het configureren van elke YubiKey op elk USB-transportmiddel
description_ru    : Кроссплатформенное приложение для настройки любого YubiKey на любом USB-транспорте
audit_schedule    : 
editor            : 2017 Yubico
keywords          : 
licence           : proprietary_restricted,wapt_private
homepage          : https://github.com/Yubico/yubikey-manager-qt
package_uuid      : cf59cab2-106b-4069-8bb7-7d6fa2966734
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4ee9ed0c7bb4e5b5fe8365ba0e80c13e2449dce0b5b85f8a332d38935a503119
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-01-25T16:07:25.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : xp7hKC9IknojKppkoVBKf/a8bsgVIInFBHaG83n5OTGjSa2aVUtsOR1eF2RGJqLN2nvP39F3nugNQCwdDAuAO4dI7b20a6AxzwO3EtY24HRiwu1S1jZ/LvQm8hX9PEwMrxpliR2T/gWY1r4LWEGh+aaqjudyX22jtdTPkYU1FGfw8NgKLeHUCH6c2mABt1rpHNKrdu8vjOZNiq79sXH5uDYCxwgFigBIUMPkp+8qeq05g6Q/ZnAZ7FZGd0sr4DkSCd+r0Mm3Xwm38H6s04+fKwZq5HuD7T4bBP+FDeKWmxugfck4FvqXlbyUd12yPs3hID4k0Vf/JGs3PgvcGXYCIw==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
app_name = "YubiKey Manager"

def install():
    for to_uninstall in installed_softwares(app_name):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(control.impacted_process.split(","))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

    # Declaring local variables
    bin_name = glob.glob('yubikey-manager-*.msi')[0]
    # Installing the software
    
    install_msi_if_needed(bin_name, remove_old_version=True)

def uninstall():
    for to_uninstall in installed_softwares(app_name):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(control.impacted_process.split(","))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob

def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    dict_arch = {
        "x64" :"-win64.msi",
        "x86" :"-win32.msi"
    }
    url_base = "https://developers.yubico.com/yubikey-manager/Releases/"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "div","id","page-content", proxies=proxies)
    exe_file = None
    for div in divs:
        if exe_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.msi') and dict_arch[control.architecture] in link['href']:
                href = link['href']
                exe_file = href
                download_url = "https://developers.yubico.com/yubikey-manager/Releases/" + exe_file
                latest_bin = exe_file.split('/')[-1]
                version = latest_bin.split('-')[-2]
                break

    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    for f in glob.glob('*.exe'):
        if f != latest_bin:
            remove_file(f)
    
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
22ef9b4d51009f89cfaa4a258887b5e0762d33277bfd602fd81c93998e15b5eb : WAPT/control
4ee9ed0c7bb4e5b5fe8365ba0e80c13e2449dce0b5b85f8a332d38935a503119 : WAPT/icon.png
06b373129f3f867ce1924aa0a0f157baf2c3efdac27ef395e4db93d9d771e2a3 : luti.json
f3ca08589de3f1dd024d7e055b2018debe22004e541ffb0376cedf9204a7783b : setup.py
cbbd6d2ab1e2487cb9d420988d5bce7f7be052683c61f0981c2167cceb32e1de : update_package.py
06ebed6369d1a897b9131f4e25044d13cab3dbe4206eafb826d56d94fcd50da9 : yubikey-manager-5.8.0-win64.msi