Beispiel #1
0
def add_parser(subparsers, api_config):
    parser = subparsers.add_parser('create')
    authorities = get_authorities(**api_config)
    destinations = get_destinations(**api_config)
    add_argument(parser, '-o', '--organization-name')
    add_argument(parser, '-b', '--bug')
    add_argument(parser,
                 '-a',
                 '--authority',
                 default=authorities[0],
                 choices=authorities)
    add_argument(parser,
                 '-d',
                 '--destinations',
                 required=False,
                 choices=destinations)
    add_argument(parser, '-s', '--sans')
    add_argument(parser, '-S', '--sans-file')
    add_argument(parser, '-K', '--key')
    add_argument(parser, '-C', '--csr')
    add_argument(parser, '-y', '--validity-years')
    add_argument(parser, '--repeat-delta')
    add_argument(parser, '--whois-check')
    add_argument(parser, '-c', '--call-detail')
    add_argument(parser, '-n', '--nerf')
    add_argument(parser, '-v', '--verbose')
    add_argument(parser, '--count')
    add_argument(parser, 'common_name')
Beispiel #2
0
def add_parser(subparsers, api_config):
    parser = subparsers.add_parser('revoke')
    authorities = get_authorities(**api_config)
    destinations = get_destinations(**api_config)
    add_argument(parser, '-b', '--bug')
    add_argument(parser,
                 '-a',
                 '--authority',
                 default=authorities[0],
                 choices=authorities)
    add_argument(parser,
                 '-d',
                 '--destinations',
                 required=False,
                 choices=destinations)
    add_argument(parser, '-c', '--call-detail')
    add_argument(parser, '-v', '--verbose')
    add_argument(
        parser,
        '--blacklist-overrides',
    )
    add_argument(
        parser,
        '--count',
    )
    add_argument(parser, 'bundle_name_pns')
Beispiel #3
0
def add_parser(subparsers, api_config):
    parser = subparsers.add_parser('deploy')
    destinations = get_destinations(**api_config)
    add_argument(parser, '-b', '--bug')
    add_argument(parser, '-d', '--destinations',
        required=False,
        choices=destinations)
    add_argument(parser, '-c', '--call-detail')
    add_argument(parser, '-v', '--verbose')
    add_argument(parser, '--blacklist-overrides',)
    add_argument(parser, 'cert_name_pns')
Beispiel #4
0
def add_parser(subparsers, api_config):
    parser = subparsers.add_parser('ls')
    authorities = get_authorities(**api_config)
    destinations = get_destinations(**api_config)
    add_argument(parser, '-a', '--authorities',
        required=False,
        default=authorities,
        choices=authorities)
    add_argument(parser, '-d', '--destinations',
        required=False,
        default=destinations,
        choices=destinations)
    add_argument(parser, '-w', '--within', default=None)
    add_argument(parser, '--verify')
    add_argument(parser, '--expired')
    add_argument(parser, '-c', '--call-detail')
    add_argument(parser, '-v', '--verbose')
    add_argument(parser, 'cert_name_pns', default='*', nargs='*')
Beispiel #5
0
def add_parser(subparsers, api_config):
    parser = subparsers.add_parser('renew')
    authorities = get_authorities(**api_config)
    destinations = get_destinations(**api_config)
    add_argument(parser, '-o', '--organization-name')
    add_argument(parser, '-b', '--bug')
    add_argument(parser, '-a', '--authority',
        default=authorities[0],
        choices=authorities)
    add_argument(parser, '-d', '--destinations',
        required=False,
        choices=destinations)
    add_argument(parser, '-s', '--sans', help='sans to ADD to the existing cert(s)')
    add_argument(parser, '-S', '--sans-file', help='file of sans to ADD to the existing cert(s)')
    add_argument(parser, '-y', '--validity-years')
    add_argument(parser, '--repeat-delta')
    add_argument(parser, '--no-whois-check')
    add_argument(parser, '-w', '--within')
    add_argument(parser, '-c', '--call-detail')
    add_argument(parser, '-v', '--verbose')
    add_argument(parser, '--blacklist-overrides',)
    add_argument(parser, 'cert_name_pns')