User Tools

Site Tools


ssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ssl [2010/10/30 23:16]
k2patel
ssl [2011/12/23 12:06] (current)
k2patel [Wilcard Certificate]
Line 1: Line 1:
 +====== SSL / Openssl great way to secure it ======
 +
 ==== SSL Issue and Resolution ==== ==== SSL Issue and Resolution ====
  
Line 11: Line 13:
 **To check if certificate and key is matching "Match the MODULUS"​ in out of following command** **To check if certificate and key is matching "Match the MODULUS"​ in out of following command**
 <code bash> <code bash>
-openssl rsa -modulus -in <​*.key>​ +openssl rsa -noout ​-modulus -in <​*.key>​ 
-openssl x509 -modulus -in <​*.crt>​+openssl x509 -noout ​-modulus -in <​*.crt>​
 </​code>​ </​code>​
  
Line 42: Line 44:
 SSLCipherSuite SSLv3:​+HIGH:​+MEDIUM:​!SSLv2:​!ADH:​!LOW:​!EXP:​!aNULL:​!eNULL:​@STRENGTH SSLCipherSuite SSLv3:​+HIGH:​+MEDIUM:​!SSLv2:​!ADH:​!LOW:​!EXP:​!aNULL:​!eNULL:​@STRENGTH
 </​code>​ </​code>​
 +
 +**Print all available high ciphers.**
 +
 +<code bash>
 +openssl ciphers HIGH
 +</​code>​
 +
 [[https://​www.ssllabs.com/​ssldb/​index.html | Test SSL Server]] [[https://​www.ssllabs.com/​ssldb/​index.html | Test SSL Server]]
  
 == Thawte CA Bundle == == Thawte CA Bundle ==
  
-[[https://​search.thawte.com/​library/​VERISIGN/​ALL_OTHER/​thawte%20ca/​SSL123_CA_Bundle.pem | SSL123 CA Bundle]]+<code txt> 
 +Root: thawte Primary Root CA 
 +-----BEGIN CERTIFICATE----- 
 +MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/​ON9srbTANBgkqhkiG9w0BAQUFADCB 
 +qTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf 
 +Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZ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R6SDGI0DUSJ1feJ/​intGI/​2mysI92qr2EiXWvSf7Qx1UiL31V6EAJ/​ASg0x 
 +d0xk0BLmDzrwocDVXB3nXy3C99Y2GNmVbkROyVgUTbaOu83eYh76W7W9GCuYrKyT 
 +P1Ba9RQLos+2855PWs1awzYj2hqvsE3WSiIDj0MCGb3qrN3EejUyFPFyLghVQAz0 
 +B0FBrzg3hClCslUCAwEAAaOB/​DCB+TAyBggrBgEFBQcBAQQmMCQwIgYIKwYBBQUH 
 +MAGGFmh0dHA6Ly9vY3NwLnRoYXd0ZS5jb20wEgYDVR0TAQH/​BAgwBgEB/​wIBADA0 
 +BgNVHR8ELTArMCmgJ6AlhiNodHRwOi8vY3JsLnRoYXd0ZS5jb20vVGhhd3RlUENB 
 +LmNybDAOBgNVHQ8BAf8EBAMCAQYwKQYDVR0RBCIwIKQeMBwxGjAYBgNVBAMTEVZl 
 +cmlTaWduTVBLSS0yLTExMB0GA1UdDgQWBBSrRORd7IPH2cCFn/​fhxpeQsIw/​mDAf 
 +BgNVHSMEGDAWgBR7W0XPr87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUFAAOC 
 +AQEABLr7rLv8S1QRoy2Iszy9AG2KGraNxMGD+MdTKsEybjqBoVR92ho/​OkVPNudC 
 +sApChZegrPvlh6eDT+ixt5tYZW4mgAuSTUdVuWEWUWXpK/​Fo2Vi4A4HRt2Yc07zF 
 +pntfPsU4RnbndbSgDEvOosKpwcw2c3v7uSQkoF6n9vq7DChDnh3wTvA/​2CSwIdxt 
 +Le6/​Wjv6iJx0bK8h3ZLswxXvlHUmRtamP79mSKod790n5rdRiTh9E4QMQPzQtfHg 
 +2/​lPL0ActI5HImG4TJbe8F8Rfk8R2exQRyIOxR3iZEnnaGNFOorZcfRe8W63FE0+ 
 +bxQe3FL+vN8MvSk/​dvsRX2hoFQ== 
 +-----END CERTIFICATE----- 
 +</​code>​ 
 + 
 +== Thawte == 
 + 
 +[[https://​search.thawte.com/​library/​VERISIGN/​ALL_OTHER/​thawte%20ca/​SSL123_CA_Bundle.pem | SSL123 CA Bundle ​(1024)]]\\ 
 +[[https://​search.thawte.com/​support/​ssl-digital-certificates/​index?​page=content&​actp=CROSSLINK&​id=SO13881 | SSL123 CA Bundle (2048)]]\\ 
 +[[https://​search.thawte.com/​support/​ssl-digital-certificates/​index?​page=content&​id=SO1498 | Instruction for other Certificates ]] 
 + 
 +== GoDaddy == 
 +[[ https://​certs.godaddy.com/​anonymous/​repository.seam | Server Certificates ]] 
 + 
 +== Verisign == 
 +[[ https://​knowledge.verisign.com/​support/​ssl-certificates-support/​index?​page=content&​actp=CROSSLINK&​id=AR1409&​TID=retailssl | CA Bundle ]] 
 +==== Self Signed SSL ==== 
 + 
 +== Generating Private Key == 
 +<code bash> 
 +openssl genrsa -des3 -out www.k2patel.com.key 2048 
 +</​code>​ 
 + 
 +== Generate CSR == 
 + 
 +<code bash> 
 +openssl req -new -key www.k2patel.com.key -out www.k2patel.com.csr 
 +</​code>​ 
 + 
 +== Removing password == 
 +This is optional only require if you provide password during CSR Generation. 
 + 
 +<code bash> 
 +mv www.k2patel.com.key www.k2patel.com.key.pass 
 +openssl rsa -in www.k2patel.com.key.pass -out www.k2patel.com.csr 
 +</​code>​ 
 + 
 +== Signing Certificate == 
 + 
 +<code bash> 
 +openssl x509 -req -days 365 -in www.k2patel.com.csr -signkey www.k2patel.com.key -out www.k2patel.com.crt 
 +</​code>​ 
 + 
 + 
 +==== 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 "​*"​ as Common Name:
 +     * 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.1288495007.txt.gz · Last modified: 2010/10/30 23:16 by k2patel