Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 583831 Details for
Bug 820961
[virt-viewer]unclear error msg when not specifies ca file location
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
script to config spice tls on host
ca.sh (text/plain), 1.54 KB, created by
zhe peng
on 2012-05-11 12:45:28 UTC
(
hide
)
Description:
script to config spice tls on host
Filename:
MIME Type:
Creator:
zhe peng
Created:
2012-05-11 12:45:28 UTC
Size:
1.54 KB
patch
obsolete
>#!/bin/bash > >SERVER_KEY=server-key.pem > ># creating a key for our ca >if [ ! -e ca-key.pem ]; then > openssl genrsa -des3 -out ca-key.pem 1024 >fi ># creating a ca >if [ ! -e ca-cert.pem ]; then > openssl req -new -x509 -days 1095 -key ca-key.pem -out ca-cert.pem -subj "/C=IL/L=Raanana/O=Red Hat/CN=my CA" >fi ># create server key >if [ ! -e $SERVER_KEY ]; then > openssl genrsa -out $SERVER_KEY 1024 >fi ># create a certificate signing request (csr) >if [ ! -e server-key.csr ]; then > openssl req -new -key $SERVER_KEY -out server-key.csr -subj "/C=IL/L=Raanana/O=Red Hat/CN=my server" >fi ># signing our server certificate with this ca >if [ ! -e server-cert.pem ]; then > openssl x509 -req -days 1095 -in server-key.csr -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem >fi > ># now create a key that doesn't require a passphrase >openssl rsa -in $SERVER_KEY -out $SERVER_KEY.insecure >mv $SERVER_KEY $SERVER_KEY.secure >mv $SERVER_KEY.insecure $SERVER_KEY > ># show the results (no other effect) >openssl rsa -noout -text -in $SERVER_KEY >openssl rsa -noout -text -in ca-key.pem >openssl req -noout -text -in server-key.csr >openssl x509 -noout -text -in server-cert.pem >openssl x509 -noout -text -in ca-cert.pem > ># copy *.pem file to /etc/pki/libvirt-spice >if [[ -d "/etc/pki/libvirt-spice" ]] >then > cp ./*.pem /etc/pki/libvirt-spice >else > mkdir /etc/pki/libvirt-spice > cp ./*.pem /etc/pki/libvirt-spice >fi > ># echo --host-subject >echo "your --host-subject is" \" `openssl x509 -noout -text -in server-cert.pem | grep Subject: | cut -f 10- -d " "` \"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 820961
: 583831