ssl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssl [2010/12/14 15:58] – k2patel | ssl [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SSL / Openssl great way to secure it ====== | ||
+ | |||
==== SSL Issue and Resolution ==== | ==== SSL Issue and Resolution ==== | ||
**Generate 2048 Bit CSR for godaddy.** | **Generate 2048 Bit CSR for godaddy.** | ||
<code bash> | <code bash> | ||
- | openssl req -nodes -newkey rsa:2048 -keyout www.xyz.com.key -out www.xyz.com.csr | + | openssl req -nodes -newkey rsa:4096 -sha512 |
</ | </ | ||
Line 11: | Line 13: | ||
**To check if certificate and key is matching "Match the MODULUS" | **To check if certificate and key is matching "Match the MODULUS" | ||
<code bash> | <code bash> | ||
- | openssl rsa -modulus -in < | + | openssl rsa -noout |
- | openssl x509 -modulus -in < | + | openssl x509 -noout |
</ | </ | ||
Line 42: | Line 44: | ||
SSLCipherSuite SSLv3: | SSLCipherSuite SSLv3: | ||
</ | </ | ||
+ | |||
+ | **Print all available high ciphers.** | ||
+ | |||
+ | <code bash> | ||
+ | openssl ciphers HIGH | ||
+ | </ | ||
+ | |||
[[https:// | [[https:// | ||
== Thawte CA Bundle == | == Thawte CA Bundle == | ||
+ | |||
+ | <code txt> | ||
+ | Root: thawte Primary Root CA | ||
+ | -----BEGIN CERTIFICATE----- | ||
+ | MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ | ||
+ | qTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf | ||
+ | Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIw | ||
+ | MDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNV | ||
+ | BAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMDYxMTE3MDAwMDAwWhcNMzYw | ||
+ | NzE2MjM1OTU5WjCBqTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5j | ||
+ | LjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYG | ||
+ | A1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl | ||
+ | IG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwggEiMA0GCSqG | ||
+ | SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCsoPD7gFnUnMekz52hWXMJEEUMDSxuaPFs | ||
+ | W0hoSVk3/ | ||
+ | 3RGNKJpchJAQeg29dGYvajig4tVUROsdB58Hum/ | ||
+ | 6KHYcWUNo1F77rzSImANuVud37r8UVsLr5iy6S7pBOhih94ryNdOwUxkHt3Ph1i6 | ||
+ | Sk/ | ||
+ | NqR32HuHUETVPm4pafs5SSYeCaWAe0At6+gnhcn+Yf1+5nyXHdWdAgMBAAGjQjBA | ||
+ | MA8GA1UdEwEB/ | ||
+ | r87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUFAAOCAQEAeRHAS7ORtvzw6WfU | ||
+ | DW5FvlXok9LOAz/ | ||
+ | YJ3rG9XRbkREqaYB7FViHXe4XI5ISXycO1cRrK1zN44veFyQaEfZYGDm/ | ||
+ | xPcW6cTYcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/ | ||
+ | / | ||
+ | LHbTY5xZ3Y+m4Q6gLkH3LpVHz7z9M/ | ||
+ | jVaMaA== | ||
+ | -----END CERTIFICATE----- | ||
+ | |||
+ | |||
+ | |||
+ | Intermediate: | ||
+ | -----BEGIN CERTIFICATE----- | ||
+ | MIIEjzCCA3egAwIBAgIQdhASihe2grs6H50amjXAkjANBgkqhkiG9w0B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VZl | ||
+ | cmlTaWduTVBLSS0yLTExMB0GA1UdDgQWBBSrRORd7IPH2cCFn/ | ||
+ | BgNVHSMEGDAWgBR7W0XPr87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUFAAOC | ||
+ | AQEABLr7rLv8S1QRoy2Iszy9AG2KGraNxMGD+MdTKsEybjqBoVR92ho/ | ||
+ | sApChZegrPvlh6eDT+ixt5tYZW4mgAuSTUdVuWEWUWXpK/ | ||
+ | pntfPsU4RnbndbSgDEvOosKpwcw2c3v7uSQkoF6n9vq7DChDnh3wTvA/ | ||
+ | Le6/ | ||
+ | 2/ | ||
+ | bxQe3FL+vN8MvSk/ | ||
+ | -----END CERTIFICATE----- | ||
+ | </ | ||
+ | |||
+ | == Thawte == | ||
[[https:// | [[https:// | ||
Line 50: | Line 121: | ||
[[https:// | [[https:// | ||
+ | == GoDaddy == | ||
+ | [[ https:// | ||
+ | |||
+ | == Verisign == | ||
+ | [[ https:// | ||
==== Self Signed SSL ==== | ==== Self Signed SSL ==== | ||
== Generating Private Key == | == Generating Private Key == | ||
<code bash> | <code bash> | ||
- | openssl genrsa -des3 -out www.k2patel.com.key | + | openssl genrsa -des3 -out www.k2patel.com.key |
</ | </ | ||
Line 74: | Line 150: | ||
<code bash> | <code bash> | ||
- | openssl x509 -req -days 365 -in www.k2patel.com.csr -signkey www.k2patel.com.csr -out www.k2patel.com.crt | + | openssl x509 -req -days 365 -in www.k2patel.com.csr -signkey www.k2patel.com.key -out www.k2patel.com.crt |
</ | </ | ||
+ | ==== Wilcard Certificate ==== | ||
+ | Wildcard Certificate is nothing diff. in mechanism except how much you pay.\\ | ||
+ | Please read following information before you dive in. | ||
- | + | * While creating wildcard certificate you need to use " | |
+ | * e.g. *.k2patel.in | ||
+ | * You can place wildcard certificate on any number of server simply you always need KEY / CRT combination moved / copied. | ||
+ | * so you can have multiple server with multiple sub-domain without issue. | ||
+ | * You do not need any special way to install / use it simply use as described above. |
ssl.1292342307.txt.gz · Last modified: 2020/08/10 02:29 (external edit)