Re: How to use RSA certificate and ECC certificate simutaneously

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Nov 20, 2018, at 9:48 AM, maoly527 <maoly527@xxxxxxx> wrote:
> 
> Does anyone know how to use RSA and ECC certificate simultaneously in one server?

You just configure two private keys and two certificate chains by calling:

  if (SSL_CTX_use_certificate_chain_file(ctx, cert_file) <= 0) {
	/* error */;
  }
  if (SSL_CTX_use_PrivateKey_file(ctx, key_file, SSL_FILETYPE_PEM) <= 0) {
       /* error */;
  }
  if (SSL_CTX_check_private_key(ctx) != 0) {
	/* error */;
  }	

once for each "cert_file" and associated "key_file" (the same file often
holds both, in which case cert_file == key_file).  The SSL error stack
will contain error details.

The SSL library will automatically select the appropriate key and certificate
chain.

-- 
	Viktor.

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux