Comments (3)
further investigation reveals ptk itself fails when it called via kubectl -ti exec $pod -- $command
. so I will ask thales support first and close the issue.
sorry for noise!
- when called via
kubectl -ti exec $pod -- $command
=> failsC_Initialize GetFunctionTable(/opt/safenet/protecttoolkit7/ptk/lib/libcthsm.so) failed
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.059) > C_GetFunctionList ppFunctionList=0x0x7fbe00000cd8
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.059) < C_GetFunctionList rv=0x00000000{success} ppFunctionList=0x0x7fbe00000cd8{0x0x7fbe041371e0}
**ppFunctionList: (552Bytes)
02 14 00 00 00 00 00 00 - 90 EB 11 04 BE 7F 00 00 - E0 EC 11 04 BE 7F 00 00 - 80 FE 11 04 BE 7F 00 00
...(reducted)
60 F2 11 04 BE 7F 00 00 - 00 F4 11 04 BE 7F 00 00 - B0 EA 11 04 BE 7F 00 00 - 20 EB 11 04 BE 7F 00 00
50 E3 11 04 BE 7F 00 00
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.060) > C_Initialize pReserved=73f4dd0p{create=0x(nil) destroy=0x(nil) lock=0x(nil) unlock=0x(nil) flags=0x2}
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.060) C_Initialize Using PKCS#11 Library /opt/safenet/protecttoolkit7/ptk/lib/libcthsm.so
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.060) C_Initialize To change use: export ET_PTKC_LOGGER_PKCS11LIB=<otherprovider>
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.060) C_Initialize GetFunctionTable(/opt/safenet/protecttoolkit7/ptk/lib/libcthsm.so) failed
pid(67) tid(140454142105344) time(2023-02-13 05:03:40.060) << C_Initialize rv=0x00000005{general error}
- when called via
kubectl -ti exec $pod -- bash
and invoke command in pod => success< C_Initialize rv=0x00000000{success}
pid(84) tid(139786740528896) time(2023-02-13 05:04:13.365) > C_GetFunctionList ppFunctionList=0x0x7f2298000cd8
pid(84) tid(139786740528896) time(2023-02-13 05:04:13.365) < C_GetFunctionList rv=0x00000000{success} ppFunctionList=0x0x7f2298000cd8{0x0x7f22a04fa1e0}
**ppFunctionList: (552Bytes)
02 14 00 00 00 00 00 00 - 90 1B 4E A0 22 7F 00 00 - E0 1C 4E A0 22 7F 00 00 - 80 2E 4E A0 22 7F 00 00
...(reducted)
60 22 4E A0 22 7F 00 00 - 00 24 4E A0 22 7F 00 00 - B0 1A 4E A0 22 7F 00 00 - 20 1B 4E A0 22 7F 00 00
50 13 4E A0 22 7F 00 00
pid(84) tid(139786740528896) time(2023-02-13 05:04:13.365) > C_Initialize pReserved=a3036dd0p{create=0x(nil) destroy=0x(nil) lock=0x(nil) unlock=0x(nil) flags=0x2}
pid(84) tid(139786740528896) time(2023-02-13 05:04:13.365) C_Initialize Using PKCS#11 Library /opt/safenet/protecttoolkit7/ptk/lib/libcthsm.so
pid(84) tid(139786740528896) time(2023-02-13 05:04:13.365) C_Initialize To change use: export ET_PTKC_LOGGER_PKCS11LIB=<otherprovider>
pid(84) tid(139786740528896) time(2023-02-13 05:04:13.389) < C_Initialize rv=0x00000000{success}
from step-kms-plugin.
@umegaya glad it works on a Thales ProtectServer 3, I don't have access to those.
from step-kms-plugin.
@maraino finally I solved the problem. root cause is we need to load /opt/safenet/protecttoolkit7/ptk/setvars.sh
to run ptk with real hardware (Protect Server 3+ External). it manipulates $PATH, $LD_LIBRARY_PATH, so it make sense. but unfortunately emulator mode (without real hardware) run perfectly without loading setvars.sh, it takes time to realize it.
now smallstep could run with redundant 2 Protect Server 3+ External and create certificate flawlessly. thanks!
from step-kms-plugin.
Related Issues (17)
- go install fails due to crypto library error HOT 1
- Support usage text as plugin HOT 1
- Document required IAM permissions for AWS KMS (but also for other providers)
- [Bug]: AWS SSO via `credential_process` not supported HOT 7
- [Request] Support for Azure Managed HSM Vaults HOT 3
- Not working with YubiHSM ? HOT 7
- Prebuilt binaries are not compatible with the official step-ca Docker image HOT 6
- Add docs on KMS URIs HOT 3
- add dependency to .deb HOT 1
- When touich policy is enabled, user isn't prompted to touch the yubikey HOT 2
- Cannot import a certificate into YubiKey PIV slot HOT 1
- Multiple region support HOT 2
- Add support for `TSS2 PRIVATE KEY` PEM format HOT 11
- Failed to create key - Error generating key HOT 3
- Oracle Vault OCI KMS support
- doc: add example using pin-source method HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from step-kms-plugin.