Git Product home page Git Product logo

Comments (3)

umegaya avatar umegaya commented on August 26, 2024

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 => fails C_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.

maraino avatar maraino commented on August 26, 2024

@umegaya glad it works on a Thales ProtectServer 3, I don't have access to those.

from step-kms-plugin.

umegaya avatar umegaya commented on August 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.