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

creating a symmetric public/private key #76

Open
SodaSurfer opened this issue Jan 21, 2022 · 0 comments
Open

creating a symmetric public/private key #76

SodaSurfer opened this issue Jan 21, 2022 · 0 comments

Comments

@SodaSurfer
Copy link

SodaSurfer commented Jan 21, 2022

Hi there,

can I use this lib also to generate a certificate with a private key that was created?
Something like:

let keypair = try CryptorRSA.makeKeyPair(CryptorRSA.RSAKey.KeySize.bits2048)
var cert = createCertificate()
cert.publicKey = keypair.publicKey
cert.sign(keypair.privateKey, sha256)

is it possible?
thanks

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

1 participant