:
:

Powered by GetResponse email marketing software

Make Money Online Instantly

Make Money Online Instantly - Your One Stop Resource For "Make Money Online Instantly"

Sunday, August 30, 2020

Sslmerge - Tool To Help You Build A Valid SSL Certificate Chain From The Root Certificate To The End-User Certificate


Is an open source tool to help you build a valid SSL certificate chain from the root certificate to the end-user certificate. Also can help you fix the incomplete certificate chain and download all missing CA certificates.

How To Use
It's simple:
# Clone this repository
git clone https://github.com/trimstray/sslmerge

# Go into the repository
cd sslmerge

# Install
./setup.sh install

# Run the app
sslmerge -i /data/certs -o /data/certs/chain.crt
  • symlink to bin/sslmerge is placed in /usr/local/bin
  • man page is placed in /usr/local/man/man8

Parameters
Provides the following options:
  Usage:
sslmerge <option|long-option>

Examples:
sslmerge --in Root.crt --in Intermediate1.crt --in Server.crt --out bundle_chain_certs.crt
sslmerge --in /tmp/certs --out bundle_chain_certs.crt --with-root
sslmerge -i Server.crt -o bundle_chain_certs.crt

Options:
--help show this message
--debug displays information on the screen (debug mode)
-i, --in add certificates to merge (certificate file, multiple files or directory with ssl certificates)
-o, --out saves the result (chain) to file
--with-root add root certificate to the certificate chain

How it works
Let's start with ssllabs certificate chain. They are delivered together with the sslmerge and can be found in the example/ssllabs.com directory which additionally contains the all directory (containing all the certificates needed to assemble the chain) and the server_certificate directory (containing only the server certificate).
The correct chain for the ssllabs.com domain (the result of the openssl command):
Certificate chain
0 s:/C=US/ST=California/L=Redwood City/O=Qualys, Inc./CN=ssllabs.com
i:/C=US/O=Entrust, Inc./OU=See www.entrust.net/legal-terms/OU=(c) 2012 Entrust, Inc. - for authorized use only/CN=Entrust Certification Authority - L1K
1 s:/C=US/O=Entrust, Inc./OU=See www.entrust.net/legal-terms/OU=(c) 2012 Entrust, Inc. - for authorized use only/CN=Entrust Certification Authority - L1K
i:/C=US/O=Entrust, Inc./OU=See www.entrust.net/legal-terms/OU=(c) 2009 Entrust, Inc. - for authorized use only/CN=Entrust Root Certification Authority - G2
2 s:/C=US/O=Entrust, Inc./OU=See www.entrust.net/legal-terms/OU=(c) 2009 Entrust, Inc. - for authorized use only/CN=Entrust Root Certification Authority - G2
i:/C=US/O=Entrust, Inc./OU=www.entrust.net/CPS is incorporated by reference/OU=(c) 2006 Entrust, Inc./CN=Entrust Root Certification Authority
The above code presents a full chain consisting of:
  • Identity Certificate (Server Certificate)
    issued for ssllabs.com by Entrust Certification Authority - L1K
  • Intermediate Certificate
    issued for Entrust Certification Authority - L1K by Entrust Root Certification Authority - G2
  • Intermediate Certificate
    issued for Entrust Root Certification Authority - G2 by Entrust Root Certification Authority
  • Root Certificate (Self-Signed Certificate)
    issued for Entrust Root Certification Authority by Entrust Root Certification Authority

Scenario 1
In this scenario, we will chain all delivered certificates. Example of running the tool:

Scenario 2
In this scenario, we only use the server certificate and use it to retrieve the remaining required certificates. Then, as above, we will combine all the provided certificates. Example of running the tool:

Certificate chain
In order to create a valid chain, you must provide the tool with all the necessary certificates. It will be:
  • Server Certificate
  • Intermediate CAs and Root CAs
This is very important because without it you will not be able to determine the beginning and end of the chain.
However, if you look inside the generated chain after generating with sslmerge, you will not find the root certificate there. Why?
Because self-signed root certificates need not/should not be included in web server configuration. They serve no purpose (clients will always ignore them) and they incur a slight performance (latency) penalty because they increase the size of the SSL handshake.
If you want to add a root certificate to the certificate chain, call the utility with the --with-root parameter.

Certification Paths
Sslmerge allows use of two certification paths:

Output comments
When generating the chain of certificates, sslmerge displays comments with information about certificates, including any errors.
Here is a list of all possibilities:

not found identity (end-user, server) certificate
The message is displayed in the absence of a server certificate that is the beginning of the chain. This is a unique case because in this situation the sslmerge ends its operation displaying only this information. The server certificate is the only certificate required to correctly create a chain. Without this certificate, the correct chain will not be created.

found correct identity (end-user, server) certificate
The reverse situation here - message displayed when a valid server certificate is found.

not found first intermediate certificate
This message appears when the first of the two intermediate certificates is not found. This information does not explicitly specify the absence of a second intermediate certificate and on the other hand it allows to determine whether the intermediate certificate to which the server certificate was signed exists. Additionally, it can be displayed if the second intermediate certificate has been delivered.

not found second intermediate certificate
Similar to the above, however, it concerns the second intermediate certificate. However, it is possible to create the chain correctly using the second certification path, e.g. using the first intermediate certificate and replacing the second with the main certificate.

one or more intermediate certificate not found
This message means that one or all of the required intermediate certificates are missing and displayed in the absence of the root certificate.

found 'n' correct intermediate certificate(s)
This message indicates the number of valid intermediate certificates.

not found correct root certificate
The lack of the root certificate is treated as a warning. Of course, when configuring certificates on the server side, it is not recommended to attach a root certificate, but if you create it with the sslmerge, it treats the chain as incomplete displaying information about the incorrect creation of the chain.

an empty CN field was found in one of the certificates
This message does not inform about the error and about the lack of the CN field what can happen with some certificates (look at example/google.com). Common Name field identifies the host name associated with the certificate. There is no requirement in RFC3280 for an Issuer DN to have a CN. Most CAs do include a CN in the Issuer DN, but some don't, such as this Equifax CA.

Requirements
Sslmerge uses external utilities to be installed before running:

Other

Contributing
See this.

Project architecture
See this.


Related word


  1. Hack Tools Mac
  2. Best Pentesting Tools 2018
  3. Pentest Tools For Mac
  4. Hacking Tools For Kali Linux
  5. Pentest Tools Windows
  6. Hacker Tools For Windows
  7. Ethical Hacker Tools
  8. Hacker Tool Kit
  9. Pentest Tools Port Scanner
  10. How To Install Pentest Tools In Ubuntu
  11. Hacker Hardware Tools
  12. Hacker Tools For Ios
  13. Best Hacking Tools 2019
  14. Hacking Tools And Software
  15. How To Install Pentest Tools In Ubuntu
  16. Hack Tool Apk No Root
  17. Hack Tool Apk No Root
  18. Hack Tools Github
  19. Hak5 Tools
  20. Hacking Tools Windows 10
  21. Hacking Tools For Pc
  22. Hacking Tools Github
  23. Hacker Tools For Ios
  24. Hacker Tools Apk
  25. Hacker Tools
  26. Pentest Tools Linux
  27. Hacker Tools Mac
  28. Pentest Tools Linux
  29. Hacking Tools
  30. Hacking Tools Free Download
  31. Hacking Tools Windows 10
  32. Hacker Techniques Tools And Incident Handling
  33. Hackers Toolbox
  34. Termux Hacking Tools 2019
  35. Hacking App
  36. Hacker Tools List
  37. Hacker Tools List
  38. Hacking Tools Download
  39. Hack Tool Apk
  40. Hack Tools Github
  41. Hacker Tools Online
  42. Hack Tools
  43. New Hacker Tools
  44. How To Install Pentest Tools In Ubuntu
  45. Hack Tool Apk
  46. Hacking Tools For Windows Free Download
  47. Hacker Tools For Pc
  48. Physical Pentest Tools
  49. Usb Pentest Tools
  50. Pentest Tools
  51. Hacking Tools For Games
  52. Pentest Tools Website
  53. How To Make Hacking Tools
  54. Pentest Tools Review
  55. Game Hacking
  56. Hack Apps
  57. Pentest Tools Linux
  58. Pentest Tools Review
  59. Kik Hack Tools
  60. Hacking Tools For Games
  61. Hack Tools For Pc
  62. Hacking Tools For Mac
  63. Hacker Tools Free
  64. Physical Pentest Tools
  65. Termux Hacking Tools 2019
  66. Hacker Tools Github
  67. Hacking Tools For Beginners
  68. Hak5 Tools
  69. Pentest Tools Open Source
  70. How To Hack
  71. Hacker Tools Hardware
  72. Hacking Tools For Windows
  73. Hack Tool Apk No Root
  74. Pentest Tools Framework
  75. Termux Hacking Tools 2019
  76. Pentest Tools Download
  77. Nsa Hack Tools Download
  78. Hacker Tools List
  79. Hacker Tools Apk
  80. Hack And Tools
  81. Hacker Tool Kit
  82. Hacker Tools Apk
  83. How To Install Pentest Tools In Ubuntu
  84. How To Install Pentest Tools In Ubuntu
  85. Hack Website Online Tool
  86. Hacking Tools Hardware
  87. Pentest Automation Tools
  88. Best Pentesting Tools 2018
  89. Hack App
  90. Pentest Tools Tcp Port Scanner
  91. Hacks And Tools
  92. Pentest Tools List
  93. Pentest Tools For Windows
  94. Pentest Tools Linux
  95. Hack And Tools
  96. Pentest Tools Url Fuzzer
  97. Hack Tools
  98. Github Hacking Tools
  99. Easy Hack Tools
  100. Hacking Tools For Games
  101. Hacker Tools Free
  102. Hacking Tools Mac
  103. New Hack Tools
  104. Pentest Tools Website
  105. Best Hacking Tools 2020
  106. Hacking Tools Free Download
  107. Hack Rom Tools
  108. Pentest Tools Alternative
  109. Hack Tools Pc
  110. Pentest Tools Open Source
  111. Nsa Hack Tools
  112. Hacker Security Tools
  113. Hacker Tools Online
  114. Hacker
  115. Hacker Tools Free
  116. Hack Tools For Games
  117. Pentest Tools Linux
  118. Hack Tools Mac
  119. Free Pentest Tools For Windows
  120. Hack Tools
  121. Hack Rom Tools
  122. Pentest Tools Online
  123. Growth Hacker Tools
  124. Usb Pentest Tools
  125. Hack Tools For Ubuntu
  126. Usb Pentest Tools
  127. Black Hat Hacker Tools
  128. Hacking Tools Mac
  129. Underground Hacker Sites
  130. Hack Tools Download
  131. Nsa Hacker Tools
  132. Hacking Tools And Software
  133. Pentest Automation Tools
  134. Easy Hack Tools
  135. Hacker Search Tools
  136. Hack Tools Pc
  137. Pentest Tools For Windows
  138. Hack Tools
  139. Hacking Tools Usb
  140. Hack Tools For Pc
  141. Hack Tools Pc
  142. Hack Website Online Tool
  143. Pentest Tools Framework
  144. Pentest Tools Subdomain
  145. Best Hacking Tools 2019
  146. Pentest Tools List

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home