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 Answer 1

1

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

4
  • thanks! how to specify email and display name like here Commented May 20, 2014 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. Commented May 20, 2014 at 10:11
  • so, I can't use it as a part of sciprt? Commented May 20, 2014 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. Commented May 20, 2014 at 15:38

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.