Skip to content

creating a symmetric public/private key #76

Open
@SodaSurfer

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions