-
Notifications
You must be signed in to change notification settings - Fork 86
httpsclient set chain
Matthias Görges edited this page Oct 16, 2016
·
3 revisions
httpsclient-set-chain enables server verification again certificate chain. This is highly recommended as it protects against fake certificates!
Parameter | Description |
---|---|
certchain | File which contains CA certificates for verification purposes |
Example 1: Get front page of www.google.com, but do so securely using Linux SSL cache.
(define httpsclient:buf (##still-copy (make-u8vector 1024)))
(httpsclient-set-chain "/etc/ssl/certs/ca-certificates.crt")
(if (fx= (httpsclient-open "www.google.com") 1) (begin
(httpsclient-send (string->u8vector "GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n"))
(if (fx> (httpsclient-recv httpsclient:buf) 0)
(display (u8vector->string httpsclient:buf))(newline))
(httpsclient-close)
))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip