Generate csr for ssl




    The code in question opens a request to create a new key pair using RSA 2048-bit encryption. The key pair is written to the file mydomain.key and the certificate signing request (CSR) is written to mydomain.csr.

    openssl req -new -newkey rsa:2048 -nodes -keyout mydomain.key -out mydomain.csr
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.