Skip to main content

Generate Multi Domain SSL Certificate by useing cert bot tool from Let's Encrypt.

 We are using cert bot tool to generate / create multi domain certificate from Let's Encrypt CA.

we are using following command 

create CSR config file to generate CSR:

Example of csr file is:

default_bits            = 2048  # RSA key size
encrypt_key             = no  # Protect private key
default_md              = sha256  # MD to use
utf8                    = yes  # Input is UTF-8
string_mask             = utf8only  # Emit UTF-8 strings
prompt                  = no  # Prompt for DN
distinguished_name      = server_dn  # DN template
req_extensions          = server_reqext  # Desired extensions

[ server_dn ]
countryName             = CountryName # ISO 3166
stateOrProvinceName     = StateName
localityName            = CityName
organizationName        = OrgName
organizationalUnitName  = UnitName
commonName              = domainname.tld  # Should match a SAN under alt_names

[ server_reqext ]
basicConstraints        = CA:FALSE
keyUsage                = critical,digitalSignature,keyEncipherment
extendedKeyUsage        = serverAuth
subjectKeyIdentifier    = hash
subjectAltName          = @alt_names

DNS.1            = domainname.tld  #Example
DNS.2            = subdomain1.domainname.tld  #Example
DNS.3            = subdomain2.domainname.tld  #Example

openssl req -new -nodes -sha256 -out newcsr.csr -config cert.cfg -keyout private.key

certbot certonly --csr newcsr.csr --manual --preferred-challenges dns -d "domainname.tld" -d "subdomain1.domainname.tld" -d "subdomain2.domainname.tld" 


now your file is generated use it and place it properly.


Popular posts from this blog

Solve FTP Error : 534 Protection level negotiation failed , FTP Client : FileZilla

You are not able to connect your ftp account and you are getting 534 Error in FileZilla. Don't Worry, We have Solution for you. It happens due to SSL requirement.     Question: When i want to connect my ftp account with Filezilla ftp client, it fail to retrieve directory listing then connection closed by server and i am unable to connect my ftp site. Following is output given by my ftp client: " Status: Resolving address of Status: Connecting to :21... Status: Connection established, waiting for welcome message... Status: Initializing TLS... Status: Verifying certificate... Status: TLS connection established. Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/" is current directory. Command: TYPE I Response: 200 Type set to I. Command: PASV Response: 227 Entering Passive Mode (194,0,292,194,244,196). Command: LIST Response: 534 Protection level negotiation failed. Error: Failed to retrieve directory l

More About Dedicate Hosting.

  Dedicated hosting is a type of web hosting service in which the user gets exclusive access to a single server for their website or application. This means that the user has full control over the server and can customize it according to their needs. Dedicated hosting is an ideal option for websites or applications that require high levels of performance, security, and reliability. In this article, we will discuss dedicated hosting in detail, including its benefits, types, and considerations to keep in mind when choosing a dedicated hosting provider. Benefits of Dedicated Hosting Exclusive resources: One of the biggest advantages of dedicated hosting is that the user has exclusive access to the server's resources. This means that the user can optimize the server's performance for their website or application without worrying about other users consuming resources. Performance: Dedicated hosting provides the highest levels of performance compared to other h

More about share web hosting.

Shared web hosting is the most basic and affordable type of web hosting available, and it is used by a large number of website owners. With shared hosting, multiple websites share a single server and its resources, including CPU, memory, storage, and bandwidth. This means that each website on the server has a limited amount of resources available to it, and if one website experiences a spike in traffic or uses too many resources, it can affect the performance of all the other websites on the server. Shared hosting is typically provided by web hosting companies, who manage the server and provide technical support for their customers. The hosting company will provide customers with a control panel, such as cPanel, that allows them to manage their website, files, email accounts, and other hosting features. The hosting company also takes care of server maintenance, software updates, and security, which means that customers do not need to have technical knowledge or experience to use shared