INNER CODE UNIT · Python

pki

polhenarejos/pico-hsm · tools/pico-hsm-tool.py:192

def pki(_, args):
    if (args.subcommand == 'initialize'):
        if (args.default is True):
            get_pki_certs(certs_dir=args.certs_dir, force=args.force)
        else:
            print('Error: no PKI is passed. Use --default to retrieve default PKI.')

def initialize(picohsm, args):
    if (not args.silent):
        print('********************************')
        print('*   PLEASE READ IT CAREFULLY   *')
        print('********************************')
        print('')
        print('This tool will erase and reset your device. It will delete all '
            'private and secret keys.')
        print('Are you sure?')
        _ = input('[Press enter to confirm]')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…