BlueRSA icon indicating copy to clipboard operation
BlueRSA copied to clipboard

creating a symmetric public/private key

Open SodaSurfer opened this issue 4 years ago • 0 comments

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

SodaSurfer avatar Jan 21 '22 12:01 SodaSurfer