Skip to content

Commit

Permalink
[FAB-9920] Private key in PKCS#8 format
Browse files Browse the repository at this point in the history
Java shim expect private key in PKCS#8 format, so now peer store it
required way.

Change-Id: Ie031397dd15b476dd71ea29a4438010727072f95
Signed-off-by: gennady <[email protected]>
Signed-off-by: Christopher Ferris <[email protected]>
  • Loading branch information
gennadylaventman authored and christo4ferris committed May 16, 2018
1 parent 4db37aa commit 3829922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/accesscontrol/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func newPrivKey() (*ecdsa.PrivateKey, []byte, error) {
if err != nil {
return nil, nil, err
}
privBytes, err := x509.MarshalECPrivateKey(privateKey)
privBytes, err := x509.MarshalPKCS8PrivateKey(privateKey)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 3829922

Please sign in to comment.