.gitignore for OpenSSL

11 ignore rules for OpenSSL, ready to copy into your repository.

Cryptography toolkit

The complete .gitignore for OpenSSL

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:29:18 UTC
# Technologies: OpenSSL

### OpenSSL ###
*.ca
*.crt
*.csr
*.der
*.kdb
*.org
# Privacy Enhanced Mail certificate
*.pem
# # PKCS #12
# PKCS#12 certificate
*.p12
*.rnd
*.ssleay
*.smime

What these OpenSSL rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

General

Pattern What it ignores
*.ca # Certificate Authority
*.crt # Certificate
*.csr # Certificate Sign Request
*.der # Certificate
*.kdb # Key database file
*.org # OSCP request data
*.pem Privacy Enhanced Mail certificate

# PKCS #12

Pattern What it ignores
*.p12 PKCS#12 certificate
*.rnd # Random number seed
*.ssleay # SSLeay data
*.smime # S/MIME message

How to use this .gitignore for OpenSSL

  1. Copy the OpenSSL rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other Security .gitignore templates

See every Security template