Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
268578e5
Commit
268578e5
authored
Dec 04, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6164
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
ec702b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
+22
-3
No files found.
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
View file @
268578e5
...
...
@@ -342,19 +342,38 @@ check_epc_s6a_certificate() {
full_hostname
=
`
cat
/usr/local/etc/freeDiameter/user.cert.pem |
grep
"Subject"
|
grep
"CN"
|
cut
-d
'='
-f6
`
if
[
a
$full_hostname
==
a
`
hostname
`
.
${
1
:-
'eur'
}
]
then
echo_success
"S6A: Found valid certificate in /usr/local/etc/freeDiameter"
echo_success
"
MME
S6A: Found valid certificate in /usr/local/etc/freeDiameter"
return
1
fi
fi
fi
echo_error
"S6A: Did not find valid certificate in /usr/local/etc/freeDiameter"
echo_warning
"S6A: generatting new certificate in /usr/local/etc/freeDiameter..."
echo_error
"
MME
S6A: Did not find valid certificate in /usr/local/etc/freeDiameter"
echo_warning
"
MME
S6A: generatting new certificate in /usr/local/etc/freeDiameter..."
cd
$OPENAIRCN_DIR
/S6A/freediameter
./make_certs.sh
${
1
:-
'eur'
}
check_epc_s6a_certificate
${
1
:-
'eur'
}
return
1
}
check_hss_s6a_certificate
()
{
if
[
-f
$OPENAIRCN_DIR
/OPENAIRHSS/conf/hss.cert.pem
]
then
full_hostname
=
`
cat
$OPENAIRCN_DIR
/OPENAIRHSS/conf/hss.cert.pem |
grep
"Subject"
|
grep
"CN"
|
cut
-d
'='
-f6
`
# we should replace 'hss' with hostname
if
[
a
$full_hostname
==
ahss.
${
1
:-
'eur'
}
]
then
echo_success
"HSS S6A: Found valid certificate in
$OPENAIRCN_DIR
/OPENAIRHSS/conf/"
return
1
fi
fi
echo_error
"HSS S6A: Did not find valid certificate in
$OPENAIRCN_DIR
/OPENAIRHSS/conf"
echo_warning
"HSS S6A: generatting new certificate in
$OPENAIRCN_DIR
/OPENAIRHSS/conf..."
cd
$OPENAIRCN_DIR
/OPENAIRHSS/conf
./make_certs.sh
${
1
:-
'eur'
}
check_hss_s6a_certificate
${
1
:-
'eur'
}
return
1
}
generate_ssh_keys
()
{
ssh-keygen
-t
dsa
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment