func CSRToCertificate(csr *x509.CertificateRequest) *x509.Certificate {
	cert := &x509.Certificate{}

	cert.Subject = csr.Subject
	cert.Extensions = csr.Extensions
	cert.ExtraExtensions = csr.ExtraExtensions
	cert.DNSNames = csr.DNSNames
	cert.EmailAddresses = csr.EmailAddresses
	cert.IPAddresses = csr.IPAddresses
	cert.URIs = csr.URIs

	return cert
}
// CSRToCertificate copies all fields from a CertificateRequest into a new x509
// Certificate. No policy check is performed this is just a straight 1 to 1
// copy.
CSRToCertificate copies all fields from a CertificateRequest into a new x509
Certificate. No policy check is performed this is just a straight 1 to 1
copy.
// CSRToCertificate copies all fields from a CertificateRequest into a new x509 // Certificate . No policy check is performed this is just a straight 1 to 1 // copy .
func CSRToCertificate(csr *x509.CertificateRequest) *x509.Certificate {
	cert := &x509.Certificate{}
	cert.Subject = csr.Subject
	cert.Extensions = csr.Extensions
	cert.ExtraExtensions = csr.ExtraExtensions
	cert.DNSNames = csr.DNSNames
	cert.EmailAddresses = csr.EmailAddresses
	cert.IPAddresses = csr.IPAddresses
	cert.URIs = csr.URIs
	return cert
}
func CSRToCertificate ( csr * x509 . CertificateRequest ) * x509 . Certificate { cert := & x509 . Certificate { } cert . Subject = csr . Subject cert . Extensions = csr . Extensions cert . ExtraExtensions = csr . ExtraExtensions cert . DNSNames = csr . DNSNames cert . EmailAddresses = csr . EmailAddresses cert . IPAddresses = csr . IPAddresses cert . URIs = csr . URIs return cert }
CSRToCertificate copies all fields from a CertificateRequest into a new x509
Certificate.
CSRToCertificate copies all fields from a CertificateRequest into a new x509 Certificate .