Skip to content

Commit

Permalink
add console gm path
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoXuan40404 committed Jan 14, 2021
1 parent d5919e2 commit 818d241
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pys/opr/opr_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,17 @@ def get_console_cert_gmssl(_dir):
data = _dir
get_sdk_cert_gmssl()
utils.dir_must_exists(data)
os.mkdir('{}/gm'.format(data))
shutil.copyfile('{}/gmca.crt'.format(meta),
'{}/gmca.crt'.format(data))
shutil.copyfile('{}/sdk/gmnode.key'.format(meta),
'{}/gmnode.key'.format(data))
'{}/gm/gmca.crt'.format(data))
shutil.copyfile('{}/sdk/gmennode.key'.format(meta),
'{}/gm/gmensdk.key'.format(data))
shutil.copyfile('{}/sdk/gmnode.crt'.format(meta),
'{}/gmnode.crt'.format(data))
'{}/gm/gmensdk.crt'.format(data))
shutil.copyfile('{}/sdk/gmnode.key'.format(meta),
'{}/gmsdk.key'.format(data))
'{}/gm/gmsdk.key'.format(data))
shutil.copyfile('{}/sdk/gmnode.crt'.format(meta),
'{}/gmsdk.crt'.format(data))
'{}/gm/gmsdk.crt'.format(data))


def get_sdk_cert():
Expand Down

0 comments on commit 818d241

Please sign in to comment.