docs/utils
Miloslav Trmač d5c080ae9c Add cryptoservice.GenerateTestingCertificate
Various tests have been calling trustmanager.NewCertificate and
open-coding most of cryptoservice.GenerateCertificate.  So, add
cryptoservice.GenerateTestingCertificate.  It differs only by using
crypto.Signer instead of data.PrivateKey because the tests
have a crypto.Signer more frequently available, and converting
from data.PrivateKey to crypto.Signer is easier than the other way.

This will make it easier to add policy parameters which the tests don't
care about to trustmanager.NewCertificate and
cryptoservice.GenerateCertificate in the future.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2015-12-09 20:02:10 +01:00
..
configuration.go Add a function to parse viper 2015-12-09 09:17:24 +08:00
configuration_test.go Add a function to parse viper 2015-12-09 09:17:24 +08:00
http.go adding gotuf to notary 2015-10-27 16:36:06 -07:00
http_test.go adding gotuf to notary 2015-10-27 16:36:06 -07:00
tls_config.go Ensure that environment variables can override config file entries. 2015-11-30 10:58:57 -08:00
tls_config_test.go Add cryptoservice.GenerateTestingCertificate 2015-12-09 20:02:10 +01:00