Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir: cannot create directory ‘/home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/../organizations/peerOrganizations/org3.example.com/msp/tlscacerts’: File exists #1130

Open
Piyushmethi09 opened this issue Oct 30, 2023 · 0 comments

Comments

@Piyushmethi09
Copy link

Generating the peer0-tls certificates, use --csr.hosts to specify Subject Alternative Names

  • fabric-ca-client enroll -u https://peer0:peer0pw@localhost:11054 --caname ca-org3 -M /home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/../organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls --enrollment.profile tls --csr.hosts peer0.org3.example.com --csr.hosts localhost --tls.certfiles /home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/fabric-ca/org3/tls-cert.pem
    2023/10/30 19:17:09 [INFO] TLS Enabled
    2023/10/30 19:17:09 [INFO] generating key: &{A:ecdsa S:256}
    2023/10/30 19:17:09 [INFO] encoded CSR
    2023/10/30 19:17:10 [INFO] Stored client certificate at /home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/signcerts/cert.pem
    2023/10/30 19:17:10 [INFO] Stored TLS root CA certificate at /home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/tlscacerts/tls-localhost-11054-ca-org3.pem
    2023/10/30 19:17:10 [INFO] Stored Issuer public key at /home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/IssuerPublicKey
    2023/10/30 19:17:10 [INFO] Stored Issuer revocation public key at /home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/IssuerRevocationPublicKey
    mkdir: cannot create directory ‘/home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/../organizations/peerOrganizations/org3.example.com/msp/tlscacerts’: File exists
    mkdir: cannot create directory ‘/home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/../organizations/peerOrganizations/org3.example.com/tlsca’: File exists
    mkdir: cannot create directory ‘/home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/../organizations/peerOrganizations/org3.example.com/ca’: File exists
    cp: target '/home/piyush/go/src/github.com/blockchain/fabric-samples/test-network/addOrg3/../organizations/peerOrganizations/org3.example.com/ca/ca.org3.example.com-cert.pem' is not a directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant