December 8, 2022

WeAnswer

The complete guide to the beginners as well as to the experienced Web Developers

HTTP to HTTPS

  1. Create CSR certificate
    OpenSSL req -new -newkey rsa:2048 -nodes -keyout mymenuinc.key -out mymenuinc.csr
    If you are using Mac OS then above command work for you
    if you are using Windows OS then you have to install OpenSSL
    for CSR you need to add some Basic detail like
    Country: 2 LETTER OF COUNTRY NAME(ISO FORMAT)
    Common Name :
    – An SSL certificate issued for domainname.com is not valid for www.domainname.com.
    – you are requesting a wildcard certificate, add an asterisk (*) on the left side of the Common Name (e.g., *.domainname.com or *.www.domainname.com).
    Organization:
    Organization name
    State: State name
    City:
    City name
    Organizational Unit:
    “Engineering” or “Human Resources”
    When you generate CSR certificate then automatically generate key file
  2. CSR UPLOAD in website where you purchased SSL certificate
  3. After domain verification and sometimes take for Certificate issued
  4. When you certificate approved then ssl certificate provides you .crt and .ca
    If you are using GoDaddy then got .crt and gd_bundle.crt
  5. For Windows apache
    \apache\conf\ssl.crt inside upload both CSR certificate
    \apache\conf\ssl.key inside upload .key file (when CSR generated )
    Edit file httpd-ssl.conf – change half path of server SSLCertificateFile (.crt path )
    – change half path of server SSLCertificateKeyFile (.key path)
    – change the full path of server SSLCACertificateFile (.crt path)                                 If you have.CA file then you have to convert .ca-bundle
    – change full path of server SSLCertificateChainFile (.ca-bundle path)
  6. Restart  apache
  7. Https