You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using build 1.1.0-16 start sync gateway with the below mentioned config.json
launch a httpsserver on a different machine
Create a document on SG
Expected the newly created document to be posted on the httpsserver.
Found error on the SG console.
Error:
WARNING: Error attempting to post to url https://172.23.105.219:9071: Post https://172.23.105.219:9071: x509: cannot validate certificate for 172.23.105.219 because it doesn't contain any IP SANs -- %!v(MISSING) -- db.func·027() at event_handler.go:111
<<<<<<<<
The issue seems to be with posting to https servers using self-signed certificates, not HTTPS in general.
adamcfraser
changed the title
webhooks events can't POST for HTTPS servers
webhooks events can't POST for HTTPS servers using self-signed cert
May 13, 2015
Steps:
Error:
Sync gateway config.json
{
"log":["REST", "REST+", "HTTP", "HTTP+", "Access", "Cache", "Shadow", "Shadow+", "CRUD", "CRUD+", "Changes", "Changes+", "JSON", "JSON+"],
"verbose":true,
"SSLCert": "/Users/ashvinder/myprojects/ssl_certs/cert.pem",
"SSLKey": "/Users/ashvinder/myprojects/ssl_certs/privkey.pem",
"facebook" : {
"register" : true
},
"databases": {
"db": {
"server": "walrus:",
"sync":
function(doc){channel(doc.channels);}
,"users": {"GUEST": {"disabled": false, "admin_channels": ["*"] }},
"event_handlers": {"document_changed":[{"handler":"webhook","max_processes" : 500,
"wait_for_process" : "600000",
"url":"https://172.23.105.219:9071",
"timeout":60,
"SSLKey": "/Users/ashvinder/myprojects/ssl_certs/privkey.pem",
"SSLCert": "/Users/ashvinder/myprojects/ssl_certs/cert.pem"}] }
}
}
}
The text was updated successfully, but these errors were encountered: