2016-08-25 2 views

답변

-1

인터넷 검색을하지 않았나요 :이 테스트를하지 않은

... 
"url": "mongodb://localhost:27017/app_db?ssl=true", 
"server": { 
    "sslValidate": true, 
    "sslCA": "path to file" 
    }, 
... 

참고,하지만 난 그것을 작동 할 것이라는 점을 생각한다.

-1

는 OpenSSL을 https://docs.mongodb.com/manual/tutorial/configure-ssl/

를 사용하여 인증서를 얻을 수

app_db: { 
"host": "127.0.0.1", 
"port": 27017, 
"database": "test", 
"name": "app_db", 
"username": "youruser", 
"password": "yourpassword", 
"connector": "mongodb", 
"ssl":true, 
"server": { 
    "auto_reconnect": true, 
    "reconnectTries": 100, 
    "reconnectInterval": 1000, 
    "sslValidate":false, 
    "checkServerIdentity":false, 
    "sslKey":fs.readFileSync('path to key'), 
    "sslCert":fs.readFileSync('path to certificate'), 
    "sslCA":fs.readFileSync('path to CA'), 
    "sslPass":"yourpassphrase if any" 

} 

사용자 이름, 암호, auto_reconnect, 시도 아래와 같이 datasources.json 사용하고 모두 선택 사용이 링크를 간격하시기 바랍니다