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 653118 Details for
Bug 871566
Need better scripting for self-signed certs
[?]
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.
Renew a PEM file
repem (text/plain), 829 bytes, created by
Philip Prindeville
on 2012-11-27 21:10:12 UTC
(
hide
)
Description:
Renew a PEM file
Filename:
MIME Type:
Creator:
Philip Prindeville
Created:
2012-11-27 21:10:12 UTC
Size:
829 bytes
patch
obsolete
>#!/bin/bash > >if [ $# -eq 0 ]; then > echo $"Usage: `basename $0` filename" 1>&2 > exit 1 >fi > >PEM=$1 >REQ=`/bin/mktemp /tmp/openssl.XXXXXX` >KEY=`/bin/mktemp /tmp/openssl.XXXXXX` >CRT=`/bin/mktemp /tmp/openssl.XXXXXX` >NEW=${PEM}_ > >trap "rm -f $REQ $KEY $CRT $NEW" SIGINT > >if [ ! -f $PEM ]; then > echo "$PEM: file not found" 1>&2 > exit 1 >fi > >let -a SERIAL=0x$(openssl x509 -in $PEM -noout -serial | cut -d= -f2) >let SERIAL++ > >umask 077 > >OWNER=`ls -l $PEM | awk '{ printf "%s.%s", $3, $4; }'` > >openssl rsa -inform pem -in $PEM -out $KEY >openssl x509 -x509toreq -in $PEM -signkey $KEY -out $REQ >openssl x509 -req -in $REQ -signkey $KEY -set_serial $SERIAL -days 365 \ > -extfile /etc/pki/tls/openssl.cnf -extensions v3_ca -out $CRT > >(cat $KEY ; echo "" ; cat $CRT) > $NEW > >chown $OWNER $NEW > >mv -f $NEW $PEM > >rm -f $REQ $KEY $CRT > >exit 0 >
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 871566
: 653118