pkix 0.2.6

TLS Certificate encoding and decoding helpers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright (c) Fortanix, Inc.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

extern crate pkix;

use pkix::pem::{der_to_pem, PEM_CERTIFICATE_REQUEST};

#[path="../tests/fakes.rs"]
pub mod fakes;

fn main() {
    let csr = fakes::csr_der(fakes::random_printable_string);

    println!("{}", der_to_pem(&csr, PEM_CERTIFICATE_REQUEST));
}