Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL with one certificate ca.pem #308

Open
asherAbecasiss opened this issue Jul 25, 2022 · 0 comments
Open

SSL with one certificate ca.pem #308

asherAbecasiss opened this issue Jul 25, 2022 · 0 comments

Comments

@asherAbecasiss
Copy link

Hi, I am trying to write with


/**

  • Creates a new channel object, using TLS
  • Creates a new connection to an AMQP broker using the supplied parameters
  • and opens a single channel for use
  • @param path_to_ca_cert Path to CA certificate file
  • @param host The hostname or IP address of the AMQP broker
  • @param path_to_client_key Path to client key file
  • @param path_to_client_cert Path to client certificate file
  • @param port The port to connect to the AMQP broker on
  • @param username The username used to authenticate with the AMQP broker
  • @param password The password corresponding to the username used to
  • authenticate with the AMQP broker
  • @param vhost The virtual host on the AMQP we should connect to
  • @param frame_max Request that the server limit the maximum size of any
  • frame to this value
  • @param verify_hostname Verify the hostname against the certificate when
  • opening the SSL connection.
  • @return a new Channel object pointer
    */
    static ptr_t CreateSecure(const std::string &path_to_ca_cert = "",
    const std::string &host = "127.0.0.1",
    const std::string &path_to_client_key = "",
    const std::string &path_to_client_cert = "",
    int port = 5671,
    const std::string &username = "guest",
    const std::string &password = "guest",
    const std::string &vhost = "/",
    int frame_max = 131072,
    bool verify_hostname_and_peer = true);

And for writer I don't need 3 files. I need only one.
how I can do it ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant