Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Main
All Projects
Main
Overview
Activity
Issues
Wiki
Files
Repository
Download (316 Bytes)
Statistics
| Branch:
master
| Tag:
RevA
RevB
| Revision:
root
/
software
/
misc
/
import-cert.sh
@ c25da0de
View
History
Annotate
#!/bin/sh
#
# usage: import-cert.sh remote.host.name [port]
#
REMHOST
=
$1
REMPORT
=
${
2
:-
443
}
exec
6>&1
exec
>
$REMHOST
echo
| openssl s_client
-connect
${
REMHOST
}
:
${
REMPORT
}
2>&1 |sed
-ne
'/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
certutil
-d
sql:
$HOME
/.pki/nssdb
-A
-t
TC
-n
"
$REMHOST
"
-i
$REMHOST
exec
1>&6 6>&-
« Previous
1
…
4
5
6
7
8
…
14
Next »
(6-6/14)
Loading...