mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
format.
This commit is contained in:
parent
7a1eb43bb1
commit
ffbfcfb1f2
@ -35,7 +35,7 @@ type SoftCAS struct {
|
||||
// crypto.
|
||||
func New(ctx context.Context, opts apiv1.Options) (*SoftCAS, error) {
|
||||
if !opts.IsCreator {
|
||||
switch {
|
||||
switch {
|
||||
case len(opts.CertificateChain) == 0:
|
||||
return nil, errors.New("softCAS 'CertificateChain' cannot be nil")
|
||||
case opts.Signer == nil:
|
||||
|
Loading…
Reference in New Issue
Block a user