Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Name

certtool

Synopsis

certtool c [h] [v] [k=keychain [c]]
certtool r filename [h] [v] [d] [k=keychain [c]]
certtool v filename [h] [v] [d]
certtool i filename [h] [v] [k=keychain [c]]
certtool d filename [h] [v]

Manages SSL/TLS certificates. It uses the Common Data Security Architecture (CDSA) in much the same way that /System/Library/OpenSSL/misc/CA.pl uses OpenSSL to ease the process of managing certificates.

As arguments, it takes a single-letter command, often a filename, and possibly some options.

Options

c

As a command, walks you through a series of interactive prompts to create a certificate and a public/private key pair to sign and possibly encrypt it. The resulting certificate is stored in your default Keychain. (Note that the first prompt, for a key and certificate label, is asking for two space-separated items. Common choices are an organization name for the key, and a label designating the purpose of the certificate.)

As an option, instructs certtool to create a new Keychain by the name given in the k option.

d

As a command, displays the certificate contained in filename.

As an option, indicates that the format of the CSR contained in filename is DER (a binary format), instead of the default PEM (an ASCII format).

h

Prints a usage statement to standard output, negating whichever command was given.

i

Imports the certificate contained in filename into the default Keychain.

k

Specifies the name of a Keychain to use other than the default.

r

Walks you through a series ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata