Skip to content

Example to generate self signed certificate programatically #7050

@PrithviAPai

Description

@PrithviAPai

Hi Team,
I m new mbedTLS and interested to learn various security aspects.
I have generated key pairs(private and public key). programmatically using OP-TEE PKCS11 APIs.
I have a requirement to generate self signed certificate using the private key.

I dont see any examples for the same in mbedTLS code base. I saw an API in cert_write.c however, it requires the key pais to be passed as a file in argument. Is there any examples demonstrating generation of self signed certificate dynamically ?

Mbed TLS needs this because as it helps newbies in security

Metadata

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