Commands
  • About
  • Software Development
    • Glossary
    • System Design
      • CAP Theorem
      • Data Migration
      • EAV Model
      • ETL Process
      • Event Sourcing
      • Outbox Pattern
      • SOLID Principles
    • Standards
      • Character Encoding
      • Twirp
    • Elixir
      • IEx
      • Mix
      • Libraries
      • Code Snippets
    • Node.js
      • TypeScript
  • Commands
    • Bookmarks
    • AWS
      • Athena
      • ECS
    • Docker
      • Manage Images
      • Manage Containers
    • File System
      • Grep
      • Search Files
      • Miscellaneous
    • Git
      • Setup New Project
      • Manage Remotes
      • Release Project
    • GPG
    • Kafka
      • Quick Start
    • Kubernetes
    • OpenShift
      • Manage Roles and Bindings
    • PostgreSQL
    • SSL / TLS
      • Common OpenSSL Commands
      • Create Self-signed Certificate
      • Java Truststore and Keystore
    • SSH
      • Key Management
      • Port Forwarding
    • YUM
      • List Repositories
      • List Packages
    • Miscellaneous
      • Network
Powered by GitBook
On this page
  • Convert The Private Key To PKCS8 Format
  • Extract The Key-pair From PKCS12 Keystore
  • Decrypt An Encrypted Private Key
  1. Commands
  2. SSL / TLS

Common OpenSSL Commands

PreviousSSL / TLSNextCreate Self-signed Certificate

Last updated 3 years ago

Reference:

Convert The Private Key To PKCS8 Format

openssl pkcs8 -topk8 -in server.key -nocrypt -out server.p8

Extract The Key-pair From PKCS12 Keystore

Extract the private key

openssl pkcs12 -in server.p12 -nocerts -out server.encrypted.key

Extract the certificate

openssl pkcs12 -in server.p12 -clcerts -nokeys -out server.crt

Decrypt An Encrypted Private Key

openssl rsa -in server.encrypted.key -out server.key
The Most Common OpenSSL Commands