Setting the pkcs12 friendly name

View: New views
2 Messages — Rating Filter:   Alert me  

Setting the pkcs12 friendly name

by Maxime_V :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

A server application needs a p12 with a specific friendly name to deploy its certificate, which should be different from the CN of the certificate.

When I retrieve the p12 with ejbca, the friendly name equals the CN of the certificate.

Is there a way to set a specific friendly name for a particular end entity via a web interface ?

If not, could you please indicate me what is the source-file responsible of the pkcs12 generation ?

Thanks for your support.

Regards,

Maxime

Re: Setting the pkcs12 friendly name

by Johan Eklund :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Maxime,

There is no setting in the GUI for setting the friendly name to anything
other than the CN or if CN is empty to the username.

The method which creates the keystore is
KeyTools.createP12(String,PrivateKey,Certificate,Certificate[]) where
the first parameter is the alias (friendly name).

If you use the EJBCA public web page for retrieving the P12 the method
is called in GenerateToken.java near the end of the file.

Also if you would like to use the command line interface for generating
users you will also have to edit BatchMakeP12.java.

Best Regards,
Markus

Maxime_V wrote:

> Hi,
>
> A server application needs a p12 with a specific friendly name to deploy its
> certificate, which should be different from the CN of the certificate.
>
> When I retrieve the p12 with ejbca, the friendly name equals the CN of the
> certificate.
>
> Is there a way to set a specific friendly name for a particular end entity
> via a web interface ?
>
> If not, could you please indicate me what is the source-file responsible of
> the pkcs12 generation ?
>
> Thanks for your support.
>
> Regards,
>
> Maxime


--

PrimeKey Solutions offers a commercial EJBCA support subscription and
training for EJBCA. Please see www.primekey.se or contact
info@... for more information.
http://download.primekey.se/documents/ejbca_subscription.pdf
http://download.primekey.se/documents/ejbca_training.pdf

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ejbca-develop mailing list
Ejbca-develop@...
https://lists.sourceforge.net/lists/listinfo/ejbca-develop