Skip to content

Commit

Permalink
Set RawSubject, not Subject, for intermediate CAs
Browse files Browse the repository at this point in the history
  • Loading branch information
csstaub committed May 3, 2016
1 parent 4bf13f7 commit d1f5850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkix/cert_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ func CreateIntermediateCertificateAuthority(crtAuth *Certificate, keyAuth *Key,
return nil, err
}

authTemplate.Subject = rawCsr.Subject
authTemplate.Subject = nil
authTemplate.RawSubject = rawCsr.RawSubject

caExpiry := time.Now().Add(crtAuth.GetExpirationDuration())
proposedExpiry := time.Now().AddDate(years, 0, 0).UTC()
Expand Down

0 comments on commit d1f5850

Please sign in to comment.