nsCertType server

Asked by Cedric Brandily on 2011-03-22

Is there a way to define a certificate with the param nsCertType=server using crypto.X509Req() ?

Thanks by advance !

ZZ ll

Question information

Language:
English Edit question
Status:
Answered
For:
pyOpenSSL Edit question
Assignee:
No assignee Edit question
Last query:
2011-03-22
Last reply:
2011-04-01
Jean-Paul Calderone (exarkun) said : #1

You should be able to do this with X509Req.add_extensions:

    from OpenSSL.crypto import X509Req, X509Extension

    req = X509Req()
    ext = X509Extension('nsCertType', False, 'server')
    req.add_extensions([ext])
    ...

Can you help with this problem?

Provide an answer of your own, or ask Cedric Brandily for more information if necessary.

To post a message you must log in.