Merge "Image signature base64 don't wrap lines"
This commit is contained in:
commit
2fee226018
|
@ -135,10 +135,13 @@ Get an image and create the signature::
|
|||
|
||||
$ openssl dgst -sha256 -sign private_key.pem -sigopt rsa_padding_mode:pss -out myimage.signature myimage
|
||||
|
||||
$ base64 myimage.signature > myimage.signature.b64
|
||||
$ base64 -w 0 myimage.signature > myimage.signature.b64
|
||||
|
||||
$ image_signature=$(cat myimage.signature.b64)
|
||||
|
||||
.. note:: Using Glance v1 requires '-w 0' due to not supporting multiline image properties.
|
||||
Glance v2 does support multiline image properties and does not require '-w 0' but may still be used.
|
||||
|
||||
Create the image::
|
||||
|
||||
$ glance image-create --name mySignedImage --container-format bare --disk-format qcow2 --property img_signature="$image_signature" --property img_signature_certificate_uuid="$cert_uuid" --property img_signature_hash_method='SHA-256' --property img_signature_key_type='RSA-PSS' < myimage
|
||||
|
|
Loading…
Reference in New Issue