Open topic with navigation

TIBCO Rendezvous® 8.7.0

# TibrvSdContext:setUserCertWithKeyBin()

Method

## Declaration

    static TibrvStatus setUserCertWithKeyBin(
        const void*    userCertWithKey,
        tibrv_u32      userCertWithKey_size,
        const char*    password);

## Purpose

Register a (PKCS #12) certificate with private key for identification to secure daemons.

## Remarks

When any program transport connects to a secure daemon, the daemon verifies the program’s identity using TLS protocols.

The Rendezvous API includes two methods that achieve similar effects:

| • | This call accepts a certificate in PKCS #12 binary format.

| • | TibrvSdContext:setUserCertWithKey() accepts a certificate in PEM text format.

Parameter | Description
`userCertWithKey` | Register this user certificate with private key. The binary data of this certificate must be in PKCS #12 format.
`userCertWithKey_size` | The length (in bytes) of the certificate data.
`password` | Use this password to decrypt the private key.

Important | For important information about password security, see Security Factors in TIBCO Rendezvous Administration.

## CA-Signed Certificate

You can also supply a certificate signed by a certificate authority (CA). To use a CA-signed certificate, you must supply not only the certificate and private key, but also the CA’s public certificate (or a chain of such certificates). For important details, see CA-Signed Certificates in TIBCO Rendezvous Administration.

## Errors

Error status code TIBRV_INVALID_FILE can indicate either disk I/O failure, or invalid certificate data, or an incorrect password.

## See Also

TibrvSdContext:setUserCertWithKey()

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.