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
ca95fb79
Commit
ca95fb79
authored
10 years ago
by
Lionel Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
arg is realm
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6154
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
81602ab7
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
openair-cn/S6A/freediameter/make_certs.sh
+10
-3
10 additions, 3 deletions
openair-cn/S6A/freediameter/make_certs.sh
with
10 additions
and
3 deletions
openair-cn/S6A/freediameter/make_certs.sh
+
10
−
3
View file @
ca95fb79
...
...
@@ -28,6 +28,13 @@
#
################################################################################
# ARG is REALM
# BY DEFAULT REALM IS "eur"
DEFAULTREALMVALUE
=
"eur"
echo
"ARG is
$1
"
REALM
=
${
1
:-
$DEFAULTREALMVALUE
}
rm
-rf
demoCA
mkdir
demoCA
echo
01
>
demoCA/serial
...
...
@@ -36,13 +43,13 @@ touch demoCA/index.txt
user
=
$(
whoami
)
HOSTNAME
=
$(
hostname
-f
)
echo
"Creating certificate for user '
$HOSTNAME
'"
echo
"Creating certificate for user '
$HOSTNAME
'
.'
$REALM
'
"
# CA self certificate
openssl req
-new
-batch
-x509
-days
3650
-nodes
-newkey
rsa:1024
-out
cacert.pem
-keyout
cakey.pem
-subj
/CN
=
eur
/C
=
FR/ST
=
PACA/L
=
Aix/O
=
Eurecom/OU
=
CM
openssl req
-new
-batch
-x509
-days
3650
-nodes
-newkey
rsa:1024
-out
cacert.pem
-keyout
cakey.pem
-subj
/CN
=
$REALM
/C
=
FR/ST
=
PACA/L
=
Aix/O
=
Eurecom/OU
=
CM
openssl genrsa
-out
user.key.pem 1024
openssl req
-new
-batch
-out
user.csr.pem
-key
user.key.pem
-subj
/CN
=
$HOSTNAME
.
eur
/C
=
FR/ST
=
PACA/L
=
Aix/O
=
Eurecom/OU
=
CM
openssl req
-new
-batch
-out
user.csr.pem
-key
user.key.pem
-subj
/CN
=
$HOSTNAME
.
$REALM
/C
=
FR/ST
=
PACA/L
=
Aix/O
=
Eurecom/OU
=
CM
openssl ca
-cert
cacert.pem
-keyfile
cakey.pem
-in
user.csr.pem
-out
user.cert.pem
-outdir
.
-batch
if
[
!
-d
/usr/local/etc/freeDiameter
]
...
...
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