Comments (5)
Hi, https://github.com/thalesignite/crypto11 implements crypto.Signer in terms of miekg/pkcs11.
from pkcs11.
Here is a use case I am envisioning (create an ssh ClientConfig)
u, err := user.Current()
if err != nil {
return nil, err
}
pin := "my fake pin"
module, _ := p11ez.OpenModule("/path/to/module.so")
slots, _ := module.Slots()
session, _ := slots[0].OpenSession()
session.Login(user, pin)
pk, _ := session.FindObject(CKO_PRIVATE_KEY)
privateKeySigner := p11ez.PrivateKey(pk)
signer, err := ssh.NewSignerFromSigner(privateKeySigner)
return &ssh.ClientConfig{
User: u.Username,
Auth: []ssh.AuthMethod{
ssh.PublicKeys(signer),
},
}, nil
from pkcs11.
Nice plan! Maybe we should do it in #56? (or after that is merged)
from pkcs11.
Just should be mentioned in the README I think. Care for a PR?
from pkcs11.
from pkcs11.
Related Issues (20)
- Is it possible to integrate this with GCloud KMS - HSM system?
- Panic in NewAttribute when use u/int16/32/64 as Attribute value
- Replace p11.Slot struct with interface HOT 4
- use v3? HOT 3
- Two constants no longer exit HOT 2
- Add CK_RSA_AES_KEY_WRAP_PARAMS to params.go HOT 6
- license issue related to the OASIS IPR Policy HOT 1
- p11.Slot.Mechanisms seems inadequate substitute for pkcs11.Ctx.GetMechanismList
- Cumbersome cryptographic operations for speed tests
- Error running in Ubuntu 18.04 I386 HOT 1
- Using AWS CloudHSM to sign ethereum transactions HOT 1
- RFE: RFC7512 URI support HOT 2
- RFE: Load p11-kit-proxy.so as default provider HOT 4
- Can't access functions of pkg HOT 1
- Error running the PKCS11 package on Windows HOT 4
- Returning attributes through GetAttributeValue in certain error scenarios
- Problem with "pkcs11.h" when running with "go build", "go run ." or "go run main.go"
- Non symetric AES keys
- Static build binary contained the pkcs11 package dlopen HOT 2
- no rsa verify test in pkcs11_test HOT 1
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 pkcs11.