05daea284e6e0cf9acf91bc29f5995d67db0e7c3
[platform/core/security/cert-svc.git] / tests / vcore / cert-svc-tests-vcore-ocsp-server.sh
1 #!/bin/sh
2 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 #    Licensed under the Apache License, Version 2.0 (the "License");
5 #    you may not use this file except in compliance with the License.
6 #    You may obtain a copy of the License at
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #    Unless required by applicable law or agreed to in writing, software
11 #    distributed under the License is distributed on an "AS IS" BASIS,
12 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #    See the License for the specific language governing permissions and
14 #    limitations under the License.
15 #
16 source /etc/tizen-platform.conf
17
18 LOCAL_VCORE_OCSP_WORKSPACE=${TZ_SYS_RO_APP}/widget/tests/vcore_certs
19
20 pkill -9 openssl # if previously it was launched and openssl didn't close sockets
21
22 OPENSSL_CONF=${LOCAL_VCORE_OCSP_WORKSPACE}/openssl.cnf openssl ocsp \
23 -nrequest 5 \
24 -index ${LOCAL_VCORE_OCSP_WORKSPACE}/demoCA/index.txt \
25 -port 8881 \
26 -rsigner ${LOCAL_VCORE_OCSP_WORKSPACE}/respcert.pem \
27 -rkey ${LOCAL_VCORE_OCSP_WORKSPACE}/respcert.key \
28 -CA ${LOCAL_VCORE_OCSP_WORKSPACE}/demoCA/cacert.pem
29
30 echo "--- OCSP server shutdown..."