mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
忽略无效ssl证书
This commit is contained in:
parent
a317ff8614
commit
422a0ce86e
@ -235,7 +235,7 @@ int main(int argc,char *argv[]) {
|
||||
//信任某个自签名证书
|
||||
SSL_Initor::Instance().trustCertificate(ssl_file.data());
|
||||
//不忽略无效证书证书(例如自签名或过期证书)
|
||||
SSL_Initor::Instance().ignoreInvalidCertificate(false);
|
||||
SSL_Initor::Instance().ignoreInvalidCertificate(true);
|
||||
|
||||
uint16_t shellPort = mINI::Instance()[Shell::kPort];
|
||||
uint16_t rtspPort = mINI::Instance()[Rtsp::kPort];
|
||||
|
BIN
tests/ssl.p12
BIN
tests/ssl.p12
Binary file not shown.
Loading…
Reference in New Issue
Block a user