Topic: wolfssl: How to generate ca certificat with subjectKeyIdentifier

Hi

I use your sample "certgen_ca_example.c" for generate my Ca certificat.

i want to add subjectKeyIdentifier and autorityKeyIdentifier.

How to add this option?

Thanks,

Share

Re: wolfssl: How to generate ca certificat with subjectKeyIdentifier

Hi ,
My name is Anthony and I am a member of the wolfSSL team.  I'll be helping you on this topic.  Please stay tuned as I will need to ask my wider engineering team.

Warm regards, Anthony

Share

Re: wolfssl: How to generate ca certificat with subjectKeyIdentifier

Hi,

We have the following APIs for setting the Authority Key ID and Subject Key ID:

WOLFSSL_API int wc_SetAuthKeyIdFromPublicKey_ex(Cert *cert, int keyType,
                                                void* key);
WOLFSSL_API int wc_SetAuthKeyIdFromPublicKey(Cert *cert, RsaKey *rsakey,
                                             ecc_key *eckey);
WOLFSSL_API int wc_SetAuthKeyIdFromCert(Cert *cert, const byte *der, int derSz);
WOLFSSL_API int wc_SetAuthKeyId(Cert *cert, const char* file);
WOLFSSL_API int wc_SetSubjectKeyIdFromPublicKey_ex(Cert *cert, int keyType,
                                                   void* key);
WOLFSSL_API int wc_SetSubjectKeyIdFromPublicKey(Cert *cert, RsaKey *rsakey,
                                                ecc_key *eckey);
WOLFSSL_API int wc_SetSubjectKeyId(Cert *cert, const char* file);

You can find examples of how to use these APIs in tests/api.c.


Can you please let us know about how you are using wolfSSL and what you are using it for?

Warm regards, Anthony

Share

4 (edited by vincent.thivent 2024-10-12 05:32:38)

Re: wolfssl: How to generate ca certificat with subjectKeyIdentifier

Hi thanks,

I'll test.

I test your library to generate certificates, for an educational project in an engineering school.

And I participate in the validation of your library with Cryptauthlib
https://github.com/MicrochipTech/crypto … 2391845926

Thank you

Vincent

Share