Jump to content
Eric Winfly

TSslCertTools for generate CSR

Recommended Posts

I use TSslCertTools for generating a KeyPair and Certificate CSR but i have a probleme with the Subject variable, i can find a ways to specify GN= and SN= because i only see the general variable like this :

 

    TSslCertTools *Tool = new TSslCertTools(NULL);

    Tool->CommonName = "Common Name";
    Tool->Organization = "Org";
    Tool->OrgUnit = "Org Unit";
    Tool->Locality = "Montreal";
    Tool->State = "QC";
    Tool->Country = "CA";

 

I have search all source code for Extended option or Subject line to specify my own data but nothing found ?

 

Share this post


Link to post

You should look at the OverbyteIcsPemtool sample, the 'New Certificate Properties' tab has settings for all the subject items, basic and extended usage, key usage, etc. 

 

However, these settings are primarily for server and computer certificates, if you need givenName and surName, I assume you are getting personal certificates from somewhere?  

 

Angus

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×