Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
268578e5
Commit
268578e5
authored
10 years ago
by
Lionel Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6164
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
ec702b7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
+22
-3
22 additions, 3 deletions
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
with
22 additions
and
3 deletions
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
+
22
−
3
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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment