Author Topic: Subject Alternative Name  (Read 991 times)

Offline atomiser

  • Contributor
  • *
  • Posts: 6
  • Karma: 0
Subject Alternative Name
« on: February 01, 2012, 02:26:03 AM »
I'm comfortable with working with certificates through the NetScaler web interface, however I now have a need to utilise a certificate that uses the Subject Alternative Name field which requires the use of OpenSSL at the command line.

Citrix don't have any documentation surrounding this as it is purely OpenSSL, however I am struggling to get what I need and my Google skills are letting me down today.  I'm hoping that someone else might have been here before and might have a step by step guide?

I need to generate the private key, and I then need to generate the certificate signing request in order to send off to our internal Microsoft CA to be signed.  I would like to include several SAN field entries within the certificate signing request.

Can anyone help?

Thanks, Andy.

Offline atomiser

  • Contributor
  • *
  • Posts: 6
  • Karma: 0
Re: Subject Alternative Name
« Reply #1 on: February 01, 2012, 07:20:48 AM »
Found this, which is useful:

http://langui.sh/2009/02/27/creating-a-subjectaltname-sanucc-csr/

However, if I then sign the CSR using the NetScaler CA I don't think it processes the SAN field properly as it's missing from the resultant signed certificate.

Tried this:

http://langui.sh/2009/02/28/openssl-sanucc-certificate-generation/

Which suggests adding 'copy_extensions = copy' to the OpenSSL conf file.  I tried added this into an nsssl.conf file somewhere in /etc but it didn't make any difference when I re-generated the CSR and then signed it again.

Anyone else done this before?

bryan.mendoza

  • Guest
Re: Subject Alternative Name
« Reply #2 on: March 05, 2012, 10:26:09 AM »
This is what you need to add to the openssl.cfg

subjectAltName          = @alt_names
[alt_names]
DNS.1 = fqdn.foo.com
DNS.2 = anythingyouwant
DNS.3 = etc


Quote
Which suggests adding 'copy_extensions = copy' to the OpenSSL conf file.  I tried added this into an nsssl.conf file somewhere in /etc but it didn't make any difference when I re-generated the CSR and then signed it again.

Anyone else done this before?

Do not modify the SSL configuration information on the Netscaler. Download OpenSSL to your machine and work with that.
« Last Edit: March 05, 2012, 10:29:03 AM by bryan m »