Bug 1293894 - oadm cannot create the server cert
Summary: oadm cannot create the server cert
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.1.0
Hardware: All
OS: All
high
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-23 12:14 UTC by zhaozhanqi
Modified: 2015-12-24 04:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-24 04:29:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description zhaozhanqi 2015-12-23 12:14:28 UTC
Description of problem:
No files will be created when using 'oadm ca create-server-cert' 

Version-Release number of selected component (if applicable):
# oc version
oc v3.1.1.0
kubernetes v1.1.0-origin-1107-g4c8e6f4

How reproducible:
always

Steps to Reproduce:
1. set up ose env 
2. Create server cert file
  
   $ CA=/etc/openshift/master
   $ oadm ca create-server-cert --signer-cert=$CA/ca.crt       --signer-key=$CA/ca.key --signer-serial=$CA/ca.serial.txt       --hostnames='*.cloudapps.example.com'       --cert=cloudapps.crt --key=cloudapps.key
3. ls -lrt

Actual results:
cloudapps.crt and cloudapps.key did not be created.

Expected results:
cloudapps.crt and cloudapps.key should be created.

Additional info:
the env is using container install mode

Comment 1 zhaozhanqi 2015-12-24 04:29:21 UTC
Close this bug since the output file need the specified directory for container install, like use:
oadm ca create-server-cert --signer-cert=$CA/ca.crt       --signer-key=$CA/ca.key --signer-serial=$CA/ca.serial.txt       --hostnames='*.cloudapps.example.com'       --cert=/tmp/cloudapps.crt --key=/tmp/cloudapps.key


Note You need to log in before you can comment on or make changes to this bug.