EnglishFrenchSpanish

Ad


OnWorks favicon

certtool - Online in the Cloud

Run certtool in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command certtool that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


certtool - GnuTLS certificate tool

SYNOPSIS


certtool [-flags] [-flag [value]] [--option-name[[=| ]value]]

All arguments must be options.

DESCRIPTION


Tool to parse and generate X.509 certificates, requests and private keys. It can be used
interactively or non interactively by specifying the template command line option.

The tool accepts files or URLs supported by GnuTLS. In case PIN is required for the URL
access you can provide it using the environment variables GNUTLS_PIN and GNUTLS_SO_PIN.

OPTIONS


-d number, --debug=number
Enable debugging. This option takes an integer number as its argument. The value
of number is constrained to being:
in the range 0 through 9999

Specifies the debug level.

-V, --verbose
More verbose output. This option may appear an unlimited number of times.

--infile=file
Input file.

--outfile=string
Output file.

-s, --generate-self-signed
Generate a self-signed certificate.

-c, --generate-certificate
Generate a signed certificate.

--generate-proxy
Generates a proxy certificate.

--generate-crl
Generate a CRL.

This option generates a CRL. When combined with --load-crl it would use the loaded
CRL as base for the generated (i.e., all revoked certificates in the base will be
copied to the new CRL).

-u, --update-certificate
Update a signed certificate.

-p, --generate-privkey
Generate a private key.

-q, --generate-request
Generate a PKCS #10 certificate request. This option must not appear in
combination with any of the following options: infile.

Will generate a PKCS #10 certificate request. To specify a private key use --load-
privkey.

-e, --verify-chain
Verify a PEM encoded certificate chain.

The last certificate in the chain must be a self signed one. It can be combined
with --verify-purpose or --verify-hostname.

--verify
Verify a PEM encoded certificate chain using a trusted list.

The trusted certificate list can be loaded with --load-ca-certificate. If no
certificate list is provided, then the system's certificate list is used. Note that
during verification multiple paths may be explored. On a successful verification
the successful path will be the last one. It can be combined with --verify-purpose
or --verify-hostname.

--verify-crl
Verify a CRL using a trusted list. This option must appear in combination with the
following options: load-ca-certificate.

The trusted certificate list must be loaded with --load-ca-certificate.

--verify-hostname=string
Specify a hostname to be used for certificate chain verification.

This is to be combined with one of the verify certificate options.

--verify-email=string
Specify a email to be used for certificate chain verification. This option must
not appear in combination with any of the following options: verify-hostname.

This is to be combined with one of the verify certificate options.

--verify-purpose=string
Specify a purpose OID to be used for certificate chain verification.

This object identifier restricts the purpose of the certificates to be verified.
Example purposes are 1.3.6.1.5.5.7.3.1 (TLS WWW), 1.3.6.1.5.5.7.3.4 (EMAIL) etc.
Note that a CA certificate without a purpose set (extended key usage) is valid for
any purpose.

--generate-dh-params
Generate PKCS #3 encoded Diffie-Hellman parameters.

--get-dh-params
Get the included PKCS #3 encoded Diffie-Hellman parameters.

Returns stored DH parameters in GnuTLS. Those parameters are used in the SRP
protocol. The parameters returned by fresh generation are more efficient since
GnuTLS 3.0.9.

--dh-info
Print information PKCS #3 encoded Diffie-Hellman parameters.

--load-privkey=string
Loads a private key file.

This can be either a file or a PKCS #11 URL

--load-pubkey=string
Loads a public key file.

This can be either a file or a PKCS #11 URL

--load-request=string
Loads a certificate request file.

--load-certificate=string
Loads a certificate file.

This can be either a file or a PKCS #11 URL

--load-ca-privkey=string
Loads the certificate authority's private key file.

This can be either a file or a PKCS #11 URL

--load-ca-certificate=string
Loads the certificate authority's certificate file.

This can be either a file or a PKCS #11 URL

--load-crl=string
Loads the provided CRL.

--load-data=string
Loads auxilary data.

--password=string
Password to use.

You can use this option to specify the password in the command line instead of
reading it from the tty. Note, that the command line arguments are available for
view in others in the system. Specifying password as '' is the same as specifying
no password.

--null-password
Enforce a NULL password.

This option enforces a NULL password. This is different than the empty or no
password in schemas like PKCS #8.

--empty-password
Enforce an empty password.

This option enforces an empty password. This is different than the NULL or no
password in schemas like PKCS #8.

--hex-numbers
Print big number in an easier format to parse.

--cprint
In certain operations it prints the information in C-friendly format.

In certain operations it prints the information in C-friendly format, suitable for
including into C programs.

-i, --certificate-info
Print information on the given certificate.

--fingerprint
Print the fingerprint of the given certificate.

This is a simple hash of the DER encoding of the certificate. It can be combined
with the --hash parameter. However, it is recommended for identification to use the
key-id which depends only on the certificate's key.

--key-id
Print the key ID of the given certificate.

This is a hash of the public key of the given certificate. It identifies the key
uniquely, remains the same on a certificate renewal and depends only on signed
fields of the certificate.

--certificate-pubkey
Print certificate's public key.

--pgp-certificate-info
Print information on the given OpenPGP certificate.

--pgp-ring-info
Print information on the given OpenPGP keyring structure.

-l, --crl-info
Print information on the given CRL structure.

--crq-info
Print information on the given certificate request.

--no-crq-extensions
Do not use extensions in certificate requests.

--p12-info
Print information on a PKCS #12 structure.

This option will dump the contents and print the metadata of the provided PKCS #12
structure.

--p12-name=string
The PKCS #12 friendly name to use.

The name to be used for the primary certificate and private key in a PKCS #12 file.

--p7-generate
Generate a PKCS #7 structure.

This option generates a PKCS #7 certificate container structure. To add
certificates in the structure use --load-certificate and --load-crl.

--p7-sign
Signs using a PKCS #7 structure.

This option generates a PKCS #7 structure containing a signature for the provided
data. The data are stored within the structure. The signer certificate has to be
specified using --load-certificate and --load-privkey.

--p7-detached-sign
Signs using a detached PKCS #7 structure.

This option generates a PKCS #7 structure containing a signature for the provided
data. The signer certificate has to be specified using --load-certificate and
--load-privkey.

--p7-include-cert, - Fl -no-p7-include-cert
The signer's certificate will be included in the cert list.. The
no-p7-include-cert form will disable the option. This option is enabled by
default.

This options works with --p7-sign or --p7-detached-sign and will include or exclude
the signer's certificate into the generated signature.

--p7-time
Will include a timestamp in the PKCS #7 structure.

This option will include a timestamp in the generated signature

--p7-show-data, - Fl -no-p7-show-data
Will show the embedded data in the PKCS #7 structure. The no-p7-show-data form
will disable the option.

This option can be combined with --p7-verify and will display the embedded signed
data in the PKCS #7 structure.

--p7-info
Print information on a PKCS #7 structure.

--p7-verify
Verify the provided PKCS #7 structure.

This option verifies the signed PKCS #7 structure. The certificate list to use for
verification can be specified with --load-ca-certificate. When no certificate list
is provided, then the system's certificate list is used. Alternatively a direct
signer can be provided using --load-certificate. A key purpose can be enforced with
the --verify-purpose option, and the --load-data option will utilize detached data.

--p8-info
Print information on a PKCS #8 structure.

This option will print information about encrypted PKCS #8 structures. That option
does not require the decryption of the structure.

--smime-to-p7
Convert S/MIME to PKCS #7 structure.

-k, --key-info
Print information on a private key.

--pgp-key-info
Print information on an OpenPGP private key.

--pubkey-info
Print information on a public key.

The option combined with --load-request, --load-pubkey, --load-privkey and --load-
certificate will extract the public key of the object in question.

--v1 Generate an X.509 version 1 certificate (with no extensions).

--to-p12
Generate a PKCS #12 structure. This option must appear in combination with the
following options: load-certificate.

It requires a certificate, a private key and possibly a CA certificate to be
specified.

--to-p8
Generate a PKCS #8 structure.

-8, --pkcs8
Use PKCS #8 format for private keys.

--rsa Generate RSA key.

When combined with --generate-privkey generates an RSA private key.

--dsa Generate DSA key.

When combined with --generate-privkey generates a DSA private key.

--ecc Generate ECC (ECDSA) key.

When combined with --generate-privkey generates an elliptic curve private key to be
used with ECDSA.

--ecdsa
This is an alias for the --ecc option.

--hash=string
Hash algorithm to use for signing.

Available hash functions are SHA1, RMD160, SHA256, SHA384, SHA512.

--inder, - Fl -no-inder
Use DER format for input certificates, private keys, and DH parameters . The
no-inder form will disable the option.

The input files will be assumed to be in DER or RAW format. Unlike options that in
PEM input would allow multiple input data (e.g. multiple certificates), when
reading in DER format a single data structure is read.

--inraw
This is an alias for the --inder option.

--outder, - Fl -no-outder
Use DER format for output certificates, private keys, and DH parameters. The
no-outder form will disable the option.

The output will be in DER or RAW format.

--outraw
This is an alias for the --outder option.

--bits=number
Specify the number of bits for key generate. This option takes an integer number
as its argument.

--curve=string
Specify the curve used for EC key generation.

Supported values are secp192r1, secp224r1, secp256r1, secp384r1 and secp521r1.

--sec-param=security parameter
Specify the security level [low, legacy, medium, high, ultra].

This is alternative to the bits option.

--disable-quick-random
No effect.

--template=string
Template file to use for non-interactive operation.

--stdout-info
Print information to stdout instead of stderr.

--ask-pass
Enable interaction for entering password when in batch mode..

This option will enable interaction to enter password when in batch mode. That is
useful when the template option has been specified.

--pkcs-cipher=cipher
Cipher to use for PKCS #8 and #12 operations.

Cipher may be one of 3des, 3des-pkcs12, aes-128, aes-192, aes-256, rc2-40, arcfour.

--provider=string
Specify the PKCS #11 provider library.

This will override the default options in /etc/gnutls/pkcs11.conf

-h, --help
Display usage information and exit.

-!, --more-help
Pass the extended usage information through a pager.

-v [{v|c|n --version [{v|c|n}]}]
Output version of program and exit. The default mode is `v', a simple version.
The `c' mode will print copyright information and `n' will print the full copyright
notice.

Use certtool online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • 2
    LMS-YouTube
    LMS-YouTube
    Play YouTube video on LMS (porting of
    Triode's to YouTbe API v3) This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/lms-y...
    Download LMS-YouTube
  • 3
    dotnet sdk
    dotnet sdk
    Core functionality needed to createNET
    Core projects, that is shared between
    Visual Studio and CLI. There are no fees
    or licensing costs, including for
    commerc...
    Download dotnet sdk
  • 4
    SportMusik
    SportMusik
    Mit dem Programm kann man schnell und
    einfach Pausen bei Sportveranstaltungen
    mit Musik berbrcken. Hierfr haben sie
    die Mglichkeit, folgende Wiedergabvaria...
    Download SportMusik
  • 5
    DavMail POP/IMAP/SMTP/Caldav to Exchange
    DavMail POP/IMAP/SMTP/Caldav to Exchange
    Ever wanted to get rid of Outlook ?
    DavMail is a
    POP/IMAP/SMTP/Caldav/Carddav/LDAP
    gateway allowing users to use any mail
    client with Exchange and Office 365, e...
    Download DavMail POP/IMAP/SMTP/Caldav to Exchange
  • 6
    DivFix++
    DivFix++
    DivFix++ is yours AVI video repair and
    preview software. It designed for repair
    and preview files which are on download
    from ed2k(emule), torrent, gnutella, ftp...
    Download DivFix++
  • 7
    JBoss Community
    JBoss Community
    Community driven projects featuring the
    latest innovations for cutting edge
    apps. Our flagship project JBoss AS is
    the leading Open Source,
    standards-compliant...
    Download JBoss Community
  • More »

Linux commands

Ad