Subject Alternative Names

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Subject Alternative Names

Grant, Courtnay
Hello,

Is there documentation, or examples, of how to create a certificate
signing request (CSR) which contains more than one subject alternative
name (SAN)?

Thanks.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Subject Alternative Names

David Hook

I'm assuming PKCS#10, but something like

Extension ext = 
    new Extension(Extension.subjectAlternativeName, false, new DEROctetString(subjectAltName));

builder.addAttribute(PKCSObjectIdentifiers.pkcs_9_at_extensionRequest, new Extensions(ext));


Where builder is a PKCS10CertificationRequestBuilder and subjectAltName is a GeneralNames object which contains the subject alternative names involved. Should do the job.

Regards,

David

On 01/07/16 09:51, Grant, Courtnay wrote:
Hello,

Is there documentation, or examples, of how to create a certificate signing request (CSR) which contains more than one subject alternative name (SAN)?

Thanks.




Loading...