Tag: OpenSSL

OpenSSL is an open-source software library that provides cryptographic functions, including secure communication protocols like SSL/TLS, widely used for securing network communications and data transmission.

  • Create certificate for localhost domains on macOS

    Create certificate for localhost domains on macOS

    Written by

    in ,

    Step 1: create a self-signed root certificate First, let’s create a self-signed root certificate: The parameter -days 390 sets the number of days, this certificate is valid. Starting on September 1st (2020), SSL/TLS certificates cannot be issued for longer than 13 months (397 days), see https://stackoverflow.com/a/65239775. If this time is too long, you will receive…

    Read more

  • Cryptography: RSA Schlüsselpaar mit OpenSSL erstellen

    Written by

    in

    RSA Schlüsselpaar mit einem privaten 2048 bit Schlüssel erstellen openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:2048 Um diese Datei vor unerwünschten Zugriffen zu schützen, sollten die Schreibrechte angepasst werden: chmod go-r private_key.pem Den öffentlichen Schlüssel aus einem RSA Schlüsselpaar extrahieren openssl rsa -pubout -in private.pem -out public.pem Damit wird die Datei public.key mit dem…

    Read more