Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Fix for cert verify in Go 1.10 #92

Merged
merged 4 commits into from
Mar 22, 2018
Merged

Conversation

kmcrawford
Copy link
Contributor

In Go 1.10 returns: certificate specifies an incompatible key usage: asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 3, 1} for APNS cert. This code change will catch and ignore this error.

In Go 1.10  returns: certificate specifies an incompatible key usage: asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 3, 1} for APNS cert. This code change will catch and ignore this error.
@kmcrawford
Copy link
Contributor Author

I am not sure why travis failed to build. I have tested this locally back to 1.7.5

@nathany
Copy link
Contributor

nathany commented Mar 20, 2018

This is the TravisCI failure:

 --- FAIL: TestNewClient (0.10s)
	service_test.go:22: certificate has expired or is not yet valid

@kmcrawford
Copy link
Contributor Author

It looks like the cert used in the test has expired. This is irrelevant of the code change.

@codecov-io
Copy link

codecov-io commented Mar 21, 2018

Codecov Report

Merging #92 into master will decrease coverage by 0.28%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #92      +/-   ##
==========================================
- Coverage   56.16%   55.88%   -0.29%     
==========================================
  Files          11       11              
  Lines         308      306       -2     
==========================================
- Hits          173      171       -2     
  Misses        116      116              
  Partials       19       19
Impacted Files Coverage Δ
push/header.go 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6d71af...72c4e37. Read the comment docs.

@kmcrawford
Copy link
Contributor Author

@nathany I updated the expired cert to a valid one. The tests now pass.

@nathany
Copy link
Contributor

nathany commented Mar 22, 2018

Thank you Ken!

@nathany nathany merged commit f7b54b6 into RobotsAndPencils:master Mar 22, 2018
cheungpat pushed a commit to SkygearIO/buford that referenced this pull request May 11, 2018
* Fix for Go 1.10

In Go 1.10  returns: certificate specifies an incompatible key usage: asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 3, 1} for APNS cert. This code change will catch and ignore this error.

* update expired cert for test

* remove .idea files

* add golang 1.10 to travis test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants