1

Is it possible to ask for certificate (.certificateRequest file) from command line?

I want to mimic behavior like Keychain -> Certificate Assistant -> Request for Certificate in Certificate Buro from command line.

Good tool /usr/bin/security does not provide requests to Certificate Buro. Maybe I wrong here.

Could anybody help with it?

1

Use the supplied "certtool" program. The "r" option allows you to generate a new certificate signing request (CSR).

  • thanks! how to specify email and display name like here – gaussblurinc May 20 '14 at 9:27
  • When you run the command, it will run you through a series of questions where you can enter for example the common name, email, country, etc. Please mark the question as answered, if this solves your problem. – jksoegaard May 20 '14 at 10:11
  • so, I can't use it as a part of sciprt? – gaussblurinc May 20 '14 at 10:56
  • 2
    Sure, but you will have to feed those answers to the script via its stdin. You could use for example the program "expect" to do that in a neat way. – jksoegaard May 20 '14 at 15:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .