Files
zeekay a861d7dc50 rename: ziti → zt across all paths
- Repo names: ziti-* → zt-*
- Go modules: github.com/hanzozt/ziti → github.com/hanzozt/zt
- Docker images: hanzozt/ziti-* → hanzozt/zt-*
- C/Java/JS symbols: ziti_* → zt_*
- File and directory names updated
2026-02-18 18:34:07 -08:00

28 lines
1.1 KiB
Batchfile

echo off
REM # Copyright 2019 NetFoundry, Inc.
REM #
REM # Licensed under the Apache License, Version 2.0 (the "License");
REM # you may not use this file except in compliance with the License.
REM # You may obtain a copy of the License at
REM #
REM # https://www.apache.org/licenses/LICENSE-2.0
REM #
REM # Unless required by applicable law or agreed to in writing, software
REM # distributed under the License is distributed on an "AS IS" BASIS,
REM # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM # See the License for the specific language governing permissions and
REM # limitations under the License.
SET lib=%1
SET pin=%2
rmdir /q /s softhsm-testdata
mkdir softhsm-testdata
SET SOFTHSM2_CONF=softhsm2.conf
echo on
softhsm2-util --init-token --free --label 'zt-test-token' --so-pin %pin% --pin %pin%
"c:\Program Files\OpenSC Project\OpenSC\tools\pkcs11-tool.exe" --module %lib% -p %pin% -k --key-type rsa:2048 --id 01 --label zt-rsa-key
"c:\Program Files\OpenSC Project\OpenSC\tools\pkcs11-tool.exe" --module %lib% -p %pin% -k --key-type EC:prime256v1 --id 02 --label zt-ecdsa-key