osbuild-auth-tests: print output from openssl

This helps debugging certificate errors, because it prints
configuration on success and what went wrong on errors.
This commit is contained in:
Lars Karlitski 2020-10-13 22:08:37 +02:00 committed by Ondřej Budai
parent 0aef7ff5d5
commit 0f70edb48e

View file

@ -97,6 +97,8 @@ func newCertificateKeyPair(CA, CAkey, subj string) (*certificateKeyPair, error)
"-CAkey", CAkey,
"-out", ckp.certificate(),
)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err = cmd.Run()
if err != nil {
return nil, fmt.Errorf("cannot sign the certificate: %v", err)