PHPackages                             os2web/os2web\_key - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. os2web/os2web\_key

ActiveDrupal-module

os2web/os2web\_key
==================

OS2Web key

1.0.0-rc5(1y ago)01.4k↓44.7%13EUPL-1.2PHPPHP ^8.1

Since May 8Pushed 1y ago3 watchersCompare

[ Source](https://github.com/OS2web/os2web_key)[ Packagist](https://packagist.org/packages/os2web/os2web_key)[ RSS](/packages/os2web-os2web-key/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (6)Used By (3)

OS2Web key
==========

[](#os2web-key)

Key types and providers for OS2Web built on the [Key module](https://www.drupal.org/project/key).

The OS2Web key module provides two *key types*, [Certificate](#certificate) and [OpenID Connect (OIDC)](#openid-connect-oidc). It also comes with two *key providers*, [Azure Key Vault](#azure-key-vault) and [HashiCorp Vault](#hashicorp-vault).

See [the Key Developer Guide](https://www.drupal.org/docs/contributed-modules/key/developer-guide) for details in how to use keys in Drupal.

Installation
------------

[](#installation)

```
composer require os2web/os2web_key
drush pm:install os2web_key
```

Keys are managed on `/admin/config/system/keys`.

Key types
---------

[](#key-types)

### Certificate

[](#certificate)

This key type handles [PKCS 12](https://en.wikipedia.org/wiki/PKCS_12) or [Privacy-Enhanced Mail (PEM)](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) certificate with an optional password (passphrase).

Managing the key:

[!["Certificate" key type form](docs/assets/key-type-certificate.png)](docs/assets/key-type-certificate.png)

Use in a form:

```
$form['key'] => [
 '#type' => 'key_select',
 '#key_filters' => [
   'type' => 'os2web_key_certificate',
 ],
];
```

The [`KeyHelper`](https://github.com/OS2web/os2web_key/blob/main/src/KeyHelper.php) can be used to get the actual certificates (parts):

```
