Skip to content
/ ssl Public

Space.sh module that generates private keys and certificates

License

Notifications You must be signed in to change notification settings

space-sh/ssl

Repository files navigation

SSL module | build status

Generate private keys, certificate signing requests and self signed certificates.

/certcheck/

Check a given certificate

Checks if a given certificate is valid
and returns information about it,
including signing details and expiration date.

/gencsr/

Create a Certificate Signing Request (CSR) to be signed by a CA

Creates a new Certificate Signing Request.
Upload the request to the CA to have it signed,
then bundle that certificate with your private key
to get your final certificate.

/genkey/

Generate a private key

Generates a private key to be used with a CSR.

/genselfsigned/

Create self-signed certificate

Creates a new self-signed certificate and key.
Self signed certificates are useful for development purposes
but not for production use.

Functions

SSL_DEP_INSTALL()

Make sure that OpenSSL is installed.

Returns:

  • 0: success. Dependencies were found
  • 1: failed to find dependencies

SSL_GENRSA()

Generate a new RSA private key.

Parameters:

  • $1: key file path
  • $2: number of bits (optional)

Returns:

  • Non-zero on error.

SSL_GENCSR()

Generate a new CSR.

Parameters:

  • $1: key file path
  • $2: CSR file path

Returns:

  • Non-zero on error.

SSL_GENSELFSIGNED()

Generate self signed certificate for
development purposes.

Parameters:

  • $1: SSL certificate output path
  • $2: SSL key output path
  • $3: number of bits for RSA (optional)
  • $4: number of days to be valid for (optional)

Returns:

  • Non-zero on error.

About

Space.sh module that generates private keys and certificates

Resources

License

Stars

Watchers

Forks

Languages