func PKIConfig(server *api.OvpnServer) crypto.PKIConfig {
	return crypto.PKIConfig{
		CommonName:         server.Spec.Security.PKI.DN.DefaultedCommonName(),
		Validity:           server.Spec.Security.PKI.DefaultedValidity(),
		RSABits:            server.Spec.Security.PKI.DefaultedRSABits(),
		Organization:       server.Spec.Security.PKI.DN.Organization,
		OrganizationalUnit: server.Spec.Security.PKI.DN.OrganizationalUnit,
		Country:            server.Spec.Security.PKI.DN.Country,
		Locality:           server.Spec.Security.PKI.DN.Locality,
	}
}
PKIConfig returns the PKI configuration for the PKI.
package ovpnserver
import (
	api "github.com/borchero/meerkat-operator/pkg/api/v1alpha1"
	"github.com/borchero/meerkat-operator/pkg/crypto"
)