Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2021, 08:27 PM   #1
roedesh
Junior Member
roedesh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra H2O
x509 error on Kobo

I am currently working on a homebrew app for the Kobo Libra H20. Whenever I try to make a web request, I get a x509 error. Something to do with certificate validation apparently.

My app is written in Go. In order to successfully make a web request, I need to do this:

Code:
func GetHttpClient() *http.Client {
	transport := &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
	}

	return &http.Client{
		Timeout:   time.Second * 5,
		Transport: transport,
	}
}
But this completely disables certificate validation, which makes you susceptible to man-in-the-middle attacks. So I was wondering if there is a better way to solve this issue?
roedesh is offline   Reply With Quote
Old 11-28-2021, 12:04 PM   #2
clisboa
Junior Member
clisboa doesn't litterclisboa doesn't litter
 
Posts: 9
Karma: 150
Join Date: Oct 2021
Device: Kobo Clara HD
You will have to integrate certificates into the Kobo device with your app.
I've managed that in KoboMail by bundling the certificates and then placing them where Go looks for them:
https://github.com/clisboa/KoboMail/...onfig_setup.sh

The file is got from here: https://curl.se/docs/caextract.html

Hope this helps.
clisboa is offline   Reply With Quote
Advert
Old 11-30-2021, 04:00 PM   #3
roedesh
Junior Member
roedesh began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra H2O
Thanks, that did the trick!
roedesh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo - I/O error skittleys Devices 14 01-15-2019 03:36 PM
Kobo Connecting Error rcentros Devices 4 03-20-2018 07:48 PM
kobo desktop error LouLouLe Kobo Reader 1 12-10-2011 03:42 PM
Kobo interface error Stinger Devices 3 09-25-2011 11:40 AM
Kobo error wolfsbayne Devices 3 07-20-2011 02:33 AM


All times are GMT -4. The time now is 03:30 AM.


MobileRead.com is a privately owned, operated and funded community.