Problemas com certificado com wget e github ultimamente

3

Ultimamente, recebi erros ao usar o wget contra o github no Ubuntu 10.04.

ERROR: certificate common name '*.github.com' doesn't match requested host name 'github.com'.
To connect to github.com insecurely, use '--no-check-certificate'.

Alguém sabe por que esse erro ocorre e como corrigi-lo (sem - no-check-certificate).

    
por grm 28.01.2011 / 13:18

1 resposta

2

Aparentemente, o github.com não usa mais um certificado curinga e usa um certificado especificamente para github.com . Você precisa obter o novo certificado SSL para github.com e colocar isso no armazenamento de certificados do seu sistema, em /etc/ssl/certs .

Você pode obter o novo certificado usando o comando

openssl s_client -showcerts -connect github.com:443

Em qualquer caso, o certificado é

-----BEGIN CERTIFICATE-----
MIIFVTCCBD2gAwIBAgIHBGX+dPs18DANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE
BhMCVVMxEDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAY
BgNVBAoTEUdvRGFkZHkuY29tLCBJbmMuMTMwMQYDVQQLEypodHRwOi8vY2VydGlm
aWNhdGVzLmdvZGFkZHkuY29tL3JlcG9zaXRvcnkxMDAuBgNVBAMTJ0dvIERhZGR5
IFNlY3VyZSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTERMA8GA1UEBRMIMDc5Njky
ODcwHhcNMDkxMjExMDUwMjM2WhcNMTQxMjExMDUwMjM2WjBRMRUwEwYDVQQKEwwq
LmdpdGh1Yi5jb20xITAfBgNVBAsTGERvbWFpbiBDb250cm9sIFZhbGlkYXRlZDEV
MBMGA1UEAxMMKi5naXRodWIuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEA7dOJw11wcgnzM08acnTZtlqVULtoYZ/3+x8Z4doEMa8VfBp/+XOvHeVD
K1YJAEVpSujEW9/Cd1JRGVvRK9k5ZTagMhkcQXP7MrI9n5jsglsLN2Q5LLcQg3LN
8OokS/rZlC7DhRU5qTr2iNr0J4mmlU+EojdOfCV4OsmDbQIXlXh9R6h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wgg/cRldBL4AgmtouTC3mlDGGG3U6eV75cdH
D03DXDfrYYjxmWjTRdO2GdbYnt1ToEgxyA==
-----END CERTIFICATE-----

Depois de colocá-lo em /etc/ssl/certs , wget o reconhecerá.

    
por user4124 28.01.2011 / 13:27

Tags