9156 Remove openssl dependency from pcks11_tpm

Review Request #910 — Created Feb. 22, 2018 and submitted

jbk
illumos-gate
9156
general

Gets rid of one of the openssl dependencies in the gate with a few small updates.

Andy Fiddaman was able to get pkcs11_tpm working with a TPM and tested before and after the change that things are working.

jbk
citrus
  1. % pfexec pktool list token=TPM
    Enter PIN for TPM:
    Found 1 asymmetric public keys.
    Key #1 - RSA public key:  jbktest
    

    Test code: https://gist.github.com/citrus-it/c5c1838b6c4ffe800b6d242826e7caef

    Output (same before and after this change)

    # ./tpm
    Slots found: 1
    Token label: TPM
    Opening session...
    Unlocking TPM...
    Token UNLOCKED
    
    Found private key...
    SignRecover rv: 0 (len=128)
    Data signed successfully.
    Found public key...
    VerifyRecover rv: 0
    Data: This is some data which is going to be signed.
    
    MATCH!
    
  2. 
      
jbk
igork
  1. Ship It!
  2. 
      
danmcd
  1. Thanks for using libmd instead.

  2. 
      
citrus
  1. Ship It!
  2. 
      
jbk
Review request changed

Status: Closed (submitted)

Loading...