Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
Rocketmq
提交
8263ca1e
R
Rocketmq
项目概览
s920243400
/
Rocketmq
与 Fork 源项目一致
Fork自
Apache RocketMQ / Rocketmq
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rocketmq
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
8263ca1e
编写于
12月 11, 2017
作者:
Y
yukon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add SSL related tests
上级
86ef2672
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
362 addition
and
2 deletion
+362
-2
remoting/src/test/java/org/apache/rocketmq/remoting/RemotingServerTest.java
...java/org/apache/rocketmq/remoting/RemotingServerTest.java
+5
-2
remoting/src/test/java/org/apache/rocketmq/remoting/SimpleClient.java
.../test/java/org/apache/rocketmq/remoting/SimpleClient.java
+65
-0
remoting/src/test/java/org/apache/rocketmq/remoting/SimpleServer.java
.../test/java/org/apache/rocketmq/remoting/SimpleServer.java
+52
-0
remoting/src/test/java/org/apache/rocketmq/remoting/TlsTest.java
...g/src/test/java/org/apache/rocketmq/remoting/TlsTest.java
+119
-0
remoting/src/test/resources/certs/ca.pem
remoting/src/test/resources/certs/ca.pem
+23
-0
remoting/src/test/resources/certs/client.key
remoting/src/test/resources/certs/client.key
+16
-0
remoting/src/test/resources/certs/client.pem
remoting/src/test/resources/certs/client.pem
+18
-0
remoting/src/test/resources/certs/privkey.pem
remoting/src/test/resources/certs/privkey.pem
+30
-0
remoting/src/test/resources/certs/server.key
remoting/src/test/resources/certs/server.key
+16
-0
remoting/src/test/resources/certs/server.pem
remoting/src/test/resources/certs/server.pem
+18
-0
未找到文件。
remoting/src/test/java/org/apache/rocketmq/remoting/RemotingServerTest.java
浏览文件 @
8263ca1e
...
...
@@ -67,8 +67,11 @@ public class RemotingServerTest {
}
public
static
RemotingClient
createRemotingClient
()
{
NettyClientConfig
config
=
new
NettyClientConfig
();
RemotingClient
client
=
new
NettyRemotingClient
(
config
);
return
createRemotingClient
(
new
NettyClientConfig
());
}
public
static
RemotingClient
createRemotingClient
(
NettyClientConfig
nettyClientConfig
)
{
RemotingClient
client
=
new
NettyRemotingClient
(
nettyClientConfig
);
client
.
start
();
return
client
;
}
...
...
remoting/src/test/java/org/apache/rocketmq/remoting/SimpleClient.java
0 → 100644
浏览文件 @
8263ca1e
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.rocketmq.remoting
;
import
org.apache.rocketmq.remoting.exception.RemotingConnectException
;
import
org.apache.rocketmq.remoting.exception.RemotingSendRequestException
;
import
org.apache.rocketmq.remoting.exception.RemotingTimeoutException
;
import
org.apache.rocketmq.remoting.netty.NettyClientConfig
;
import
org.apache.rocketmq.remoting.protocol.RemotingCommand
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
TlsTest
.
getCertsPath
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_AUTHSERVER
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_CERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_KEYPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_TRUSTCERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_AUTHCLIENT
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_CERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_KEYPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_MODE
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_NEED_CLIENT_AUTH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_TRUSTCERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_TEST_MODE_ENABLE
;
public
class
SimpleClient
{
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
,
RemotingTimeoutException
,
RemotingSendRequestException
,
RemotingConnectException
{
System
.
setProperty
(
TLS_SERVER_MODE
,
"enforcing"
);
System
.
setProperty
(
TLS_TEST_MODE_ENABLE
,
"false"
);
System
.
setProperty
(
TLS_SERVER_NEED_CLIENT_AUTH
,
"require"
);
System
.
setProperty
(
TLS_SERVER_KEYPATH
,
getCertsPath
(
"server.key"
));
System
.
setProperty
(
TLS_SERVER_CERTPATH
,
getCertsPath
(
"server.pem"
));
System
.
setProperty
(
TLS_SERVER_AUTHCLIENT
,
"true"
);
System
.
setProperty
(
TLS_SERVER_TRUSTCERTPATH
,
getCertsPath
(
"ca.pem"
));
System
.
setProperty
(
TLS_CLIENT_KEYPATH
,
getCertsPath
(
"client.key"
));
System
.
setProperty
(
TLS_CLIENT_CERTPATH
,
getCertsPath
(
"client.pem"
));
System
.
setProperty
(
TLS_CLIENT_AUTHSERVER
,
"true"
);
System
.
setProperty
(
TLS_CLIENT_TRUSTCERTPATH
,
getCertsPath
(
"ca.pem"
));
NettyClientConfig
clientConfig
=
new
NettyClientConfig
();
clientConfig
.
setUseTLS
(
true
);
RemotingClient
remotingClient
=
RemotingServerTest
.
createRemotingClient
(
clientConfig
);
RequestHeader
requestHeader
=
new
RequestHeader
();
requestHeader
.
setCount
(
1
);
requestHeader
.
setMessageTitle
(
"Welcome"
);
RemotingCommand
request
=
RemotingCommand
.
createRequestCommand
(
0
,
requestHeader
);
RemotingCommand
response
=
remotingClient
.
invokeSync
(
"localhost:8888"
,
request
,
1000
*
3
);
System
.
out
.
println
(
response
);
}
}
remoting/src/test/java/org/apache/rocketmq/remoting/SimpleServer.java
0 → 100644
浏览文件 @
8263ca1e
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.rocketmq.remoting
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
TlsTest
.
getCertsPath
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_AUTHSERVER
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_CERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_KEYPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_TRUSTCERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_AUTHCLIENT
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_CERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_KEYPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_MODE
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_NEED_CLIENT_AUTH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_TRUSTCERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_TEST_MODE_ENABLE
;
public
class
SimpleServer
{
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
{
System
.
setProperty
(
TLS_SERVER_MODE
,
"enforcing"
);
System
.
setProperty
(
TLS_TEST_MODE_ENABLE
,
"false"
);
System
.
setProperty
(
TLS_SERVER_NEED_CLIENT_AUTH
,
"require"
);
System
.
setProperty
(
TLS_SERVER_KEYPATH
,
getCertsPath
(
"server.key"
));
System
.
setProperty
(
TLS_SERVER_CERTPATH
,
getCertsPath
(
"server.pem"
));
System
.
setProperty
(
TLS_SERVER_AUTHCLIENT
,
"true"
);
System
.
setProperty
(
TLS_SERVER_TRUSTCERTPATH
,
getCertsPath
(
"ca.pem"
));
System
.
setProperty
(
TLS_CLIENT_KEYPATH
,
getCertsPath
(
"client.key"
));
System
.
setProperty
(
TLS_CLIENT_CERTPATH
,
getCertsPath
(
"client.pem"
));
System
.
setProperty
(
TLS_CLIENT_AUTHSERVER
,
"true"
);
System
.
setProperty
(
TLS_CLIENT_TRUSTCERTPATH
,
getCertsPath
(
"ca.pem"
));
RemotingServer
remotingServer
=
RemotingServerTest
.
createRemotingServer
();
}
}
remoting/src/test/java/org/apache/rocketmq/remoting/TlsTest.java
0 → 100644
浏览文件 @
8263ca1e
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.rocketmq.remoting
;
import
java.io.File
;
import
org.apache.rocketmq.remoting.exception.RemotingConnectException
;
import
org.apache.rocketmq.remoting.exception.RemotingSendRequestException
;
import
org.apache.rocketmq.remoting.exception.RemotingTimeoutException
;
import
org.apache.rocketmq.remoting.netty.NettyClientConfig
;
import
org.apache.rocketmq.remoting.protocol.LanguageCode
;
import
org.apache.rocketmq.remoting.protocol.RemotingCommand
;
import
org.junit.AfterClass
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.mockito.junit.MockitoJUnitRunner
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_AUTHSERVER
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_CERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_KEYPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_CLIENT_TRUSTCERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_AUTHCLIENT
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_CERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_KEYPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_MODE
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_NEED_CLIENT_AUTH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_SERVER_TRUSTCERTPATH
;
import
static
org
.
apache
.
rocketmq
.
remoting
.
netty
.
TlsSystemConfig
.
TLS_TEST_MODE_ENABLE
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
@RunWith
(
MockitoJUnitRunner
.
class
)
public
class
TlsTest
{
private
static
RemotingServer
remotingServer
;
private
static
RemotingClient
remotingClient
;
@BeforeClass
public
static
void
setUp
()
throws
InterruptedException
{
System
.
setProperty
(
TLS_SERVER_MODE
,
"enforcing"
);
System
.
setProperty
(
TLS_TEST_MODE_ENABLE
,
"false"
);
System
.
setProperty
(
TLS_SERVER_NEED_CLIENT_AUTH
,
"require"
);
System
.
setProperty
(
TLS_SERVER_KEYPATH
,
getCertsPath
(
"server.key"
));
System
.
setProperty
(
TLS_SERVER_CERTPATH
,
getCertsPath
(
"server.pem"
));
System
.
setProperty
(
TLS_SERVER_AUTHCLIENT
,
"true"
);
System
.
setProperty
(
TLS_SERVER_TRUSTCERTPATH
,
getCertsPath
(
"ca.pem"
));
System
.
setProperty
(
TLS_CLIENT_KEYPATH
,
getCertsPath
(
"client.key"
));
System
.
setProperty
(
TLS_CLIENT_CERTPATH
,
getCertsPath
(
"client.pem"
));
System
.
setProperty
(
TLS_CLIENT_AUTHSERVER
,
"true"
);
System
.
setProperty
(
TLS_CLIENT_TRUSTCERTPATH
,
getCertsPath
(
"ca.pem"
));
remotingServer
=
RemotingServerTest
.
createRemotingServer
();
NettyClientConfig
clientConfig
=
new
NettyClientConfig
();
clientConfig
.
setUseTLS
(
true
);
remotingClient
=
RemotingServerTest
.
createRemotingClient
(
clientConfig
);
}
@AfterClass
public
static
void
tearDown
()
{
remotingClient
.
shutdown
();
remotingServer
.
shutdown
();
}
/**
* public static final String TLS_SERVER_MODE = "tls.server.mode";
public static final String TLS_ENABLE = "tls.enable";
public static final String TLS_CONFIG_FILE = "tls.config.file";
public static final String TLS_TEST_MODE_ENABLE = "tls.test.mode.enable";
public static final String TLS_SERVER_NEED_CLIENT_AUTH = "tls.server.need.client.auth";
public static final String TLS_SERVER_KEYPATH = "tls.server.keyPath";
public static final String TLS_SERVER_KEYPASSWORD = "tls.server.keyPassword";
public static final String TLS_SERVER_CERTPATH = "tls.server.certPath";
public static final String TLS_SERVER_AUTHCLIENT = "tls.server.authClient";
public static final String TLS_SERVER_TRUSTCERTPATH = "tls.server.trustCertPath";
public static final String TLS_CLIENT_KEYPATH = "tls.client.keyPath";
public static final String TLS_CLIENT_KEYPASSWORD = "tls.client.keyPassword";
public static final String TLS_CLIENT_CERTPATH = "tls.client.certPath";
public static final String TLS_CLIENT_AUTHSERVER = "tls.client.authServer";
public static final String TLS_CLIENT_TRUSTCERTPATH = "tls.client.trustCertPath";
*/
@Test
public
void
basicClientServerIntegrationTest
()
throws
InterruptedException
,
RemotingTimeoutException
,
RemotingConnectException
,
RemotingSendRequestException
{
RequestHeader
requestHeader
=
new
RequestHeader
();
requestHeader
.
setCount
(
1
);
requestHeader
.
setMessageTitle
(
"Welcome"
);
RemotingCommand
request
=
RemotingCommand
.
createRequestCommand
(
0
,
requestHeader
);
RemotingCommand
response
=
remotingClient
.
invokeSync
(
"localhost:8888"
,
request
,
1000
*
3
);
System
.
out
.
println
(
response
);
assertTrue
(
response
!=
null
);
assertThat
(
response
.
getLanguage
()).
isEqualTo
(
LanguageCode
.
JAVA
);
assertThat
(
response
.
getExtFields
()).
hasSize
(
2
);
remotingClient
.
shutdown
();
remotingServer
.
shutdown
();
}
static
String
getCertsPath
(
String
fileName
)
{
//File resourcesDirectory = new File("src/test/resources/certs");
File
resourcesDirectory
=
new
File
(
"/Users/zhouxinyu/apache-space/incubator-rocketmq/remoting/src/test/resources/certs/"
);
return
resourcesDirectory
.
getAbsolutePath
()
+
"/"
+
fileName
;
}
}
remoting/src/test/resources/certs/ca.pem
0 → 100644
浏览文件 @
8263ca1e
-----BEGIN CERTIFICATE-----
MIID6TCCAtGgAwIBAgIJAOvs64b60b2jMA0GCSqGSIb3DQEBBQUAMIGKMQswCQYD
VQQGEwJ6aDELMAkGA1UECAwCemoxCzAJBgNVBAcMAmh6MQ8wDQYDVQQKDAZhcGFj
aGUxETAPBgNVBAsMCHJvY2tldG1xMRwwGgYDVQQDDBNyb2NrZXRtcS5hcGFjaGUu
b3JnMR8wHQYJKoZIhvcNAQkBFhB5dWtvbkBhcGFjaGUub3JnMB4XDTE3MTIxMDEz
NDUwM1oXDTE4MDEwOTEzNDUwM1owgYoxCzAJBgNVBAYTAnpoMQswCQYDVQQIDAJ6
ajELMAkGA1UEBwwCaHoxDzANBgNVBAoMBmFwYWNoZTERMA8GA1UECwwIcm9ja2V0
bXExHDAaBgNVBAMME3JvY2tldG1xLmFwYWNoZS5vcmcxHzAdBgkqhkiG9w0BCQEW
EHl1a29uQGFwYWNoZS5vcmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDWQF779Mr00/KOYI7jqpUSdhbz8Pf+mose4wAd8+WPz3TdWCShsyHCZplUY18+
xneEMB8zE5KHnXRejw/eM4PZtS6ptd9XD744EvKo/VvoD0/lRXsmpny4ZODvhuOz
QkOlsYGweq5vlQooUHraqYrn6IgR/ibGopFE7oqxsMPFmkV/Y83Z8KMlTf4sj+hM
LsrhZuenpBoSST/DK5D+W2byKhhZvw8hxHRIA6aNggEdOZvDnS8TCougiQ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K/
s9i0dNyzfQCpqxVw2bo4X+DhDjrGzd2aX0k2IrgoMiCsYTemgpKwUn86A8Cwwqm+
kv6vsIgw9maVIHwRJAR8Z3k74yAD7OmJ87FGLFyBpqkG2+amHJk3mxLeXQIDAQAB
MA0GCSqGSIb3DQEBBQUAA4IBAQCWjvZ2VvfPco3vb8VDqffY+LIm4vM6uwgbaEal
v28pUEhrsaBnhL4AB1oDKAfLd9eBosvoGGqQKqBzPr6cvOBTbR8K734FH5jd5+hX
40gUzRhBn2OaSjWCjBFplsZKHmocnlpogOHHmCVqrofpzcvep6t2xAXS7rr1qN63
CQUPYGeFPo4GnPRUtyirg2QFFS/PHnjKeyGNs0SuVWYR6a0aiy/AGH8LKgnpoFNu
pWQFlKBJ15SywH7W0ew4I29/zaPfkrGR98OXNt3+9JhYL4j953slw6NnNZwnUgUY
sqhmYKF1VTFqiZMVyrHCKIgMKROpLv+tx1xDWb9o/dnPnVOf
-----END CERTIFICATE-----
remoting/src/test/resources/certs/privkey.pem
0 → 100644
浏览文件 @
8263ca1e
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIJsho4sqLH9YCAggA
MBQGCCqGSIb3DQMHBAiy71jmvceeywSCBMgal02N4c3kK/p+mYR6C+I6SJcnTRFX
cKfkr/8ILSBQrjEVs/wKDbiGX27Qm9A7+T5SDmeuUMsY6N4DJYKiCeeCETTnY0M3
k66P7ylVHHBYUd41PKt1GH9PVP8/nAX3+nO6O2KrzsZrxIYJwSGo8uXr19HKdtrm
KDhj9WcPJ9F3FC/ND0gAbJnJ/bBffn0XxL6214meoSqkq3sdRKWLAZcWIyNp6lpo
Ud7kINW2LDla5WQ2dkAnQ4W+F1F2n2OnP82knP5u0oBkatuiOCYTeZiRaiGPzKda
hKUa/wrYfsb4TAWgahHUvWjBY05IchxayEw3x4V96cphn2/OMQcdbKgWXH1Wvzvx
RnnvmurtEcwDjylyGtzaf40okTS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EO8Kk0Om5bfGJ+NNEeBxbXPd
VxjA+C4N2JT83SzHFJI/AlUJOo0H3dTzwkOGpdykMDBxS9ajoQIfzjrn6N1dRD4a
Xyye5YyQnJ2sgAfYdK0kpHlfnqWus1M1ZDoDMLxjImRrO91y
-----END CERTIFICATE-----
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录