Demystifying Cryptography with OpenSSL 3.0: Discover the best techniques to enhance your network security with OpenSSL 3.0

Front Cover
Packt Publishing Ltd, Oct 26, 2022 - Computers - 342 pages

Use OpenSSL to add security features to your application, including cryptographically strong symmetric and asymmetric encryption, digital signatures, SSL/TLS connectivity, and PKI handling

Key Features
    Book DescriptionSecurity and networking are essential features of software today. The modern internet is full of worms, Trojan horses, men-in-the-middle, and other threats. This is why maintaining security is more important than ever. OpenSSL is one of the most widely used and essential open source projects on the internet for this purpose. If you are a software developer, system administrator, network security engineer, or DevOps specialist, you’ve probably stumbled upon this toolset in the past – but how do you make the most out of it? With the help of this book, you will learn the most important features of OpenSSL, and gain insight into its full potential. This book contains step-by-step explanations of essential cryptography and network security concepts, as well as practical examples illustrating the usage of those concepts. You’ll start by learning the basics, such as how to perform symmetric encryption and calculate message digests. Next, you will discover more about cryptography: MAC and HMAC, public and private keys, and digital signatures. As you progress, you will explore best practices for using X.509 certificates, public key infrastructure, and TLS connections. By the end of this book, you’ll be able to use the most popular features of OpenSSL, allowing you to implement cryptography and TLS in your applications and network infrastructure.What you will learn
    • Understand how to use symmetric cryptography
    • Get to grips with message digests, MAC, and HMAC
    • Discover asymmetric cryptography and digital signatures
    • Focus on how to apply and use X.509 certificates
    • Dive into TLS and its proper usage
    • Manage advanced and special usages of TLS
    • Find out how to run a mini certificate authority for your organization
    Who this book is for

    This book is for software developers, system administrators, DevOps specialists, network security engineers, and analysts, or anyone who wants to keep their applications and infrastructure secure. Software developers will learn how to use the OpenSSL library to empower their software with cryptography and TLS. DevOps professionals and sysadmins will learn how to work with cryptographic keys and certificates on the command line, and how to set up a mini-CA for their organization. A basic understanding of security and networking is required.

     

    Contents

    Introduction
    1
    OpenSSL and Other SSLTLS Libraries
    3
    Symmetric Cryptography
    13
    Symmetric Encryption and Decryption
    15
    Message Digests
    55
    MAC and HMAC
    71
    Derivation of an Encryption Key from a Password
    83
    Asymmetric Cryptography and Certificates
    93
    TLS Connections and Secure Communication
    161
    Establishing TLS Connections and Sending Data over Them
    163
    Using X509 Certificates in TLS
    193
    Special Usages of TLS
    243
    Running a MiniCA
    277
    Running a MiniCA
    279
    Index
    305
    About Packt
    317

    Asymmetric Encryption and Decryption
    95
    Digital Signatures and Their Verification
    119
    X509 Certificates and PKI
    137
    Other Books You May Enjoy
    318
    Copyright

    Common terms and phrases

    About the author (2022)

    Alexei Khlebnikov has more than 20 years of professional experience in IT, where he worked in different roles - software developer, system administrator, DevOps engineer, technical leader, architect and project manager. During those years Alexei worked with many technologies - Security, Artificial Intelligence, Web Development, Embedded, Mobile, and Robotics. Among other companies, Alexei worked in Opera Software on the famous Opera Internet browser. Alexei has always been interested in security. He was one of the maintainers of security-related Opera browser modules, responsible for cryptography, SSL/TLS and integration with OpenSSL. He was also a member of the Security Architects group, responsible for the security of the Opera browser. Now Alexei lives in Oslo, Norway, and works as a senior consultant for Bespoke AS. He is also the leader of the Architects group at his current employer.

    Bibliographic information