Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypting messages using CLI Open SSL #39

Open
jvanzummeren opened this issue Feb 25, 2019 · 5 comments
Open

Encrypting messages using CLI Open SSL #39

jvanzummeren opened this issue Feb 25, 2019 · 5 comments

Comments

@jvanzummeren
Copy link

I'm playing around with both signing and ecrypting. The example project provides a way to verify signatures using openssl (by printing the statements in the debug log), which is working perfectly fine in the POC i'm working on.

I was wondering if you can assist in doing the same for encrypting messages using the public key from the device. Can openssl CLI encrypt messages which the device can decrypt using it's private key (which is stored in the secure enclave)?

Thanks in advance

Jim

@hfossli
Copy link
Contributor

hfossli commented Feb 25, 2019 via email

@hfossli
Copy link
Contributor

hfossli commented Feb 28, 2019

I have given it an attempt at line by line porting @dschuetz's code. https://gist.github.com/hfossli/6763c2ceeba0f03ce45cc630bbbec7b0 Maybe you are able to finish it?

@jvanzummeren
Copy link
Author

Thanks! Interesting article indeed! I had been experimenting with it as well but haven't figured out a complete solution yet either, i kind of got the feeling that it's not possible with the current openssl cli. Will let you know if i find any more information

@dschuetz
Copy link
Contributor

dschuetz commented Feb 28, 2019 via email

@hfossli
Copy link
Contributor

hfossli commented Feb 28, 2019

Awesome! Thanks! Really helpful. Just one small step away.

The reason I want to be able to do this with openssl cli is just because it is so universal. It seems most experienced people are using python, c etc to do these things - totally understandable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants