HTTPS Self Signed

69 views
Skip to first unread message

ahmad...@xprea.com

unread,
Apr 28, 2016, 6:25:49 PM4/28/16
to CEF2go
Hi, how we can disable SSL certificate check for self signed certificates

Czarek Tomczak

unread,
Apr 29, 2016, 3:02:40 AM4/29/16
to CEF2go
You can ignore certificate errors in CEF using the ignore_certificate_errors option or by implementing the on_certificate_error callback, see: https://github.com/cztomczak/cef2go/search?utf8=%E2%9C%93&q=ignore_certificate_errors

This option is not exposed in cef2go, so it woild require minor additions, see:
1. Add new value to the Settings struct - https://github.com/cztomczak/cef2go/blob/9e7f6a31c2785c97a49beb2bc874df7fa46119d2/src/cef/cef.go#L55
2. Set bool value - https://github.com/cztomczak/cef2go/blob/9e7f6a31c2785c97a49beb2bc874df7fa46119d2/src/cef/cef.go#L185

Czarek Tomczak

unread,
Apr 29, 2016, 3:08:46 AM4/29/16
to CEF2go
On a side note, when there is a certificate error Chromium disables caching, see: https://github.com/cztomczak/cefpython/issues/125

ahmad...@xprea.com

unread,
Apr 30, 2016, 4:55:21 AM4/30/16
to CEF2go
Thank you very much for your reply.

i tried the below but didnt work

type Settings struct {
CachePath string
LogSeverity int
LogFile string
ResourcesDirPath string
LocalesDirPath string
ignore_certificate_errors bool
}

and added the below at line 185
settings.ignore_certificate_errors = true

another issue we faced when trying to play HTML5 video, didnt work, any advise in this matter?

thanks again

ahmad...@xprea.com

unread,
Apr 30, 2016, 5:19:36 AM4/30/16
to CEF2go
I was doing it wrong, my fault, sorry

i have undo all my changes and added at line 185 the below
cefSettings.ignore_certificate_errors = 1

it works :)

thank you

pending HTML5 video, if you can advise on that i would appreciated alot.

ahmad...@xprea.com

unread,
Apr 30, 2016, 7:37:53 AM4/30/16
to CEF2go
Just a quick note, i mean h264 videos

Czarek Tomczak

unread,
Apr 30, 2016, 9:23:21 AM4/30/16
to CEF2go

ahmad...@xprea.com

unread,
Apr 30, 2016, 9:29:08 AM4/30/16
to CEF2go
Thank you for your support.

so the only way is to build cef myself, no link or what so ever to already build cef with h264 support.

cztomczak

unread,
Apr 30, 2016, 3:40:39 PM4/30/16
to CEF2go
Search the CEF Forum for "proprietary" or similar. One of the results: https://magpcss.org/ceforum/viewtopic.php?f=6&t=13515&p=29442&hilit=proprietary#p29442
Reply all
Reply to author
Forward
Message has been deleted
0 new messages