-
Notifications
You must be signed in to change notification settings - Fork 0
/
cert-tool
executable file
·34 lines (28 loc) · 894 Bytes
/
cert-tool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python
#
# Copyright (c) 2016 SUSE LLC
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
# along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
## language imports
import sys
import os
import string
from certTool.certToolCli import get_options
from certTool.certToolMain import CertTool
options = get_options()
try:
sys.exit(CertTool(options).run())
except KeyboardInterrupt:
sys.stderr.write("\nUser interrupted process.\n")
sys.exit(0)
except Exception, ex:
sys.stderr.write("General error: {0}\n".format(ex))
if options.verbose:
raise
else:
sys.exit(1)