1libkmf(3LIB) Interface Libraries libkmf(3LIB)
2
3
4
6 libkmf - Key Management Framework library
7
9 cc [ flag... ] file... -lkmf [ library... ]
10 #include <kmfapi.h>
11
12
14 These functions comprise the Key Management Framework library. They
15 are intended to be used by applications that need to perform operations
16 involving the creation and management of public key objects such as
17 public/private key pairs, certificates, certificate signing requests,
18 certificate validation, certificate revocation lists, and OCSP response
19 processing.
20
22 The shared object libkmf.so.1 provides the public interfaces defined
23 below. See Intro(3) for additional information on shared object inter‐
24 faces.
25
26
27
28
29 kmf_add_cert_eku kmf_add_csr_eku
30 kmf_add_policy_to_db kmf_build_pk12
31 kmf_check_cert_date kmf_check_crl_date
32 kmf_compare_rdns kmf_configure_keystore
33 kmf_create_cert_file kmf_create_csr_file
34 kmf_create_keypair kmf_create_ocsp_request
35 kmf_create_sym_key kmf_decode_csr
36 kmf_decrypt kmf_delete_cert_from_keystore
37 kmf_delete_crl kmf_delete_key_from_keystore
38 kmf_delete_policy_from_db kmf_der_to_pem
39 kmf_dn_parser kmf_download_cert
40 kmf_download_crl kmf_ekuname_to_oid
41 kmf_encode_cert_record kmf_encrypt
42 kmf_export_pk12 kmf_finalize
43 kmf_find_attr kmf_find_cert
44 kmf_find_cert_in_crl kmf_find_crl
45 kmf_find_key kmf_find_prikey_by_cert
46 kmf_free_algoid kmf_free_bigint
47 kmf_free_crl_dist_pts kmf_free_data
48 kmf_free_dn kmf_free_eku
49 kmf_free_eku_policy kmf_free_extn
50 kmf_free_kmf_cert kmf_free_kmf_key
51 kmf_free_policy_record kmf_free_raw_key
52 kmf_free_raw_sym_key kmf_free_signed_cert
53 kmf_free_signed_csr kmf_free_spki
54 kmf_free_str kmf_free_tbs_cert
55 kmf_free_tbs_csr kmf_get_attr
56 kmf_get_attr_ptr kmf_get_cert_auth_info_access
57 kmf_get_cert_basic_constraint kmf_get_cert_crl_dist_pts
58 kmf_get_cert_eku kmf_get_cert_email_str
59 kmf_get_cert_end_date_str kmf_get_cert_extn
60 kmf_get_cert_extn_str kmf_get_cert_id_data
61 kmf_get_cert_id_str kmf_get_cert_issuer_str
62 kmf_get_cert_ku kmf_get_cert_policies
63 kmf_get_cert_pubkey_alg_str kmf_get_cert_pubkey_str
64 kmf_get_cert_serial_str kmf_get_cert_sig_alg_str
65 kmf_get_cert_start_date_str kmf_get_cert_subject_str
66
67 kmf_get_cert_validity kmf_get_cert_version_str
68 kmf_get_data_format kmf_get_encoded_ocsp_response
69 kmf_get_file_format kmf_get_kmf_error_str
70 kmf_get_ocsp_for_cert kmf_get_ocsp_status_for_cert
71 kmf_get_pk11_handle kmf_get_plugin_error_str
72 kmf_get_policy kmf_get_string_attr
73 kmf_get_sym_key_value kmf_hexstr_to_bytes
74 kmf_import_crl kmf_import_cert
75 kmf_import_objects kmf_initialize
76 kmf_is_cert_data kmf_is_cert_file
77 kmf_is_crl_file kmf_ku_to_string
78 kmf_list_crl kmf_oid_to_ekuname
79 kmf_oid_to_string kmf_pem_to_der
80 kmf_pk11_token_lookup kmf_read_input_file
81 kmf_select_token kmf_set_attr
82 kmf_set_attr_at_index kmf_set_cert_basic_constraint
83 kmf_set_cert_extn kmf_set_cert_issuer
84 kmf_set_cert_issuer_altname kmf_set_cert_ku
85 kmf_set_cert_pubkey kmf_set_cert_serial
86 kmf_set_cert_sig_alg kmf_set_cert_subject
87 kmf_set_cert_subject_altname kmf_set_cert_validity
88 kmf_set_cert_version kmf_set_csr_extn
89 kmf_set_csr_ku kmf_set_csr_pubkey
90 kmf_set_csr_sig_alg kmf_set_csr_subject
91 kmf_set_csr_subject_altname kmf_set_csr_version
92 kmf_set_policy kmf_set_token_pin
93 kmf_sign_cert kmf_sign_csr
94 kmf_sign_data kmf_store_cert
95 kmf_store_key kmf_string_to_ku
96 kmf_string_to_oid kmf_validate_cert
97 kmf_verify_cert kmf_verify_crl_file
98 kmf_verify_csr kmf_verify_data
99 kmf_verify_policy
100
101
103 /lib/libkmf.so.1 shared object
104
105
106 /lib/64/libkmf.so.1 64-bit shared object
107
108
109 /usr/include/kmfapi.h KMF function definitions
110
111
112 /usr/include/kmftypes.h KMF structures and types.
113
114
116 See attributes(5) for descriptions of the following attributes:
117
118
119
120
121 ┌─────────────────────────────┬─────────────────────────────┐
122 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
123 ├─────────────────────────────┼─────────────────────────────┤
124 │Availability │SUNWcsr (32-bit) │
125 │ │SUNWcsrx (64-bit) │
126 ├─────────────────────────────┼─────────────────────────────┤
127 │Interface Stability │Committed │
128 ├─────────────────────────────┼─────────────────────────────┤
129 │MT-Level │Safe │
130 └─────────────────────────────┴─────────────────────────────┘
131
133 kmfcfg(1), pktool(1), attributes(5)
134
135
136 Solaris Security for Developers Guide
137
138
139
140SunOS 5.11 7 Feb 2008 libkmf(3LIB)